First version of the FML interpreter. It's slow and memory isn't
[egate.git] / fml / Makefile
1 # FML interpreter. Europagate, 1995
2 #
3 # $Id: Makefile,v 1.1.1.1 1995/02/06 13:48:10 adam Exp $
4
5 SHELL=/bin/sh
6 INCLUDE=-I../include
7 TPROG1=fmltest
8 CFLAGS=-g -Wall -pedantic 
9 DEFS=$(INCLUDE)
10 LIB=fml.a 
11 PO = fmltoken.o fmlmem.o fml.o fmlsym.o
12 CPP=cc -E
13 CC=gcc
14
15 all: $(LIB) $(TPROG1) $(TPROG2)
16
17 $(TPROG1): $(TPROG1).o $(LIB) 
18         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB)
19
20 $(LIB): $(PO)
21         rm -f $(LIB)
22         ar qc $(LIB) $(PO)
23         ranlib $(LIB)
24
25 .c.o:
26         $(CC) -c $(DEFS) $(CFLAGS) $<
27
28 clean:
29         rm -f *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist
30
31 depend: depend2
32
33 depend1:
34         mv Makefile Makefile.tmp
35         sed '/^#Depend/q' <Makefile.tmp >Makefile
36         $(CPP) $(INCLUDE) -M *.c >>Makefile
37         -rm Makefile.tmp
38
39 depend2:
40         $(CPP) $(INCLUDE) -M *.c >.depend       
41
42 ifeq (.depend,$(wildcard .depend))
43 include .depend
44 endif
45
46 #Depend --- DOT NOT DELETE THIS LINE