1 # FML interpreter. Europagate, 1995
3 # $Id: Makefile,v 1.13 1995/03/01 14:31:23 adam Exp $
6 INCLUDE=-I../include -I. $(REGEXINC)
8 CFLAGS=-g -Wall -pedantic
10 DEFS=$(INCLUDE) -DUSE_GNU_REGEX=1
12 PO = fmltoken.o fmlmem.o fml.o fmlsym.o fmlrel.o fmlarit.o fmllist.o \
13 fmlcall.o fmlcalls.o fmlmarc.o fmlstr.o
15 all: $(LIB) $(TPROG1) $(TPROG2)
17 $(TPROG1): $(TPROG1).o $(LIB)
18 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/util.a $(REGEXOBJ)
26 $(CC) -c $(DEFS) $(CFLAGS) $<
29 rm -f *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist
34 mv Makefile Makefile.tmp
35 sed '/^#Depend/q' <Makefile.tmp >Makefile
36 $(CPP) $(INCLUDE) -M *.c >>Makefile
40 $(CPP) $(INCLUDE) -M *.c >.depend
42 ifeq (.depend,$(wildcard .depend))
46 #Depend --- DOT NOT DELETE THIS LINE