#
# STD* make up some of the functions from the ANSI-C standard library.
# If you've got them already, comment out the definitions
#
STDOBJS		= strtod.o strtol.o strtoul.o strerror.o
STDSRCS		= strtod.c strtol.c strtoul.c strerror.c
OBJS 		= buf.o hash.o list.o option.o setenv.o sys.o $(STDOBJS)
SRCS 		= buf.c hash.c list.c option.c setenv.c sys.c $(STDSRCS)

MACHFLAGS	= 
INCLUDES	= -I../include
CFLAGS 		= $(MACHFLAGS) $(INCLUDES)

libsprite.a	: $(OBJS)
	rm -f $@
	ar crl $@ $(OBJS)
	ranlib $@

install		: libsprite.a

clean		::
	rm -f *.o *.po libsprite.a libsprite_p.a

package		: 
	-mkdir $(PKGDIR)
	cp $(SRCS) Makefile makefile $(PKGDIR)
