Removed CFLAGS definition.
[egate.git] / fml / Makefile
1 # FML interpreter. Europagate, 1995
2 #
3 # $Id: Makefile,v 1.16 1996/05/22 08:37:17 adam Exp $
4
5 SHELL=/bin/sh
6 INCLUDE=-I../include -I. $(REGEXINC)
7 TPROG1=fmltest
8 CPP=$(CC) -E
9 DEFS=$(INCLUDE) -DUSE_GNU_REGEX=1
10 LIB=../lib/fml.a 
11 PO = fmltoken.o fmlmem.o fml.o fmlsym.o fmlrel.o fmlarit.o fmllist.o \
12 fmlcall.o fmlcalls.o fmlmarc.o fmlstr.o
13
14 all: $(LIB) $(TPROG1) $(TPROG2)
15
16 $(TPROG1): $(TPROG1).o $(LIB) 
17         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/util.a $(REGEXOBJ)
18
19 $(LIB): $(PO)
20         rm -f $(LIB)
21         ar qc $(LIB) $(PO)
22         ranlib $(LIB)
23
24 .c.o:
25         $(CC) -c $(DEFS) $(CFLAGS) $<
26
27 clean:
28         rm -f *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist
29
30 depend: depend2
31
32 depend1:
33         sed '/^#Depend/q' <Makefile >Makefile.tmp
34         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
35         mv -f Makefile.tmp Makefile
36
37 depend2:
38         $(CPP) $(DEFS) -M *.c >.depend  
39
40 #GNU make style depend
41 ifeq (.depend,$(wildcard .depend))
42 include .depend
43 endif
44
45 #Depend --- DOT NOT DELETE THIS LINE