#
# 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 getopt.o
STDSRCS		= strtod.c strtol.c strtoul.c strerror.c getopt.c
#STDOBJS		= 
#STDSRCS		= 
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)

#include	<makelib.mk>
#include	<po.mk>

#if exists(../../config.mk)
#include	"../../config.mk"
#endif

CC		?= cc
MACHFLAGS	?=
OPTIMIZE	?= -g -O

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

all:		libsprite.a

libsprite.a: libsprite.a($(OBJS)) MAKELIB .EXPORTSAME
libsprite_p.a: libsprite_p.a($(OBJS:S/.o$/.po/g)) MAKELIB .EXPORTSAME

#
# This should be unnecessary.
#
clean		:: .NOEXPORT
	rm -f *.o *.po libsprite.a libsprite_p.a
