#
# standalone mini libast old make makefile
#
CC = cc
CFLAGS = $(ASTSA_CFLAGS)
ASTSA_OPTIMIZE = -O
ASTSA_CFLAGS = $(ASTSA_OPTIMIZE) -D_PACKAGE_astsa -I.
ASTSA_GEN = \
ASTSA_BLD = \
ASTSA_HDRS = \
ast.h \
ccode.h \
cdt.h \
debug.h \
error.h \
ip6.h \
option.h \
optlib.h \
sfstr.h \
times.h \
ASTSA_SRCS = \
aso.c \
ast.c \
chresc.c \
error.c \
fmtbuf.c \
fmtip4.c \
fmtip6.c \
optget.c \
sfstr.c \
strdup.c \
dtdisc.c \
dthash.c \
dtlist.c \
dtnew.c \
dtopen.c \
dttree.c \
dtview.c \
ASTSA_MANIFEST = \
README astsa.omk mkast_sa \
$(ASTSA_BLD) $(ASTSA_HDRS) $(ASTSA_SRCS)
astsa : ast_sa.h libastsa.a
ar cr libastsa.a $?
ast_sa.h : mkast_sa
./mkast_sa $(CC) $(CFLAGS) > ast_sa.h
clean :
rm -f ast_sa.h *.o *.a
clobber : clean