X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=fml%2FMakefile;h=08a4b6bf88563f56f8c644b4685eef11a1cc6c72;hb=25db261b6bbbfcc7bc26f679f195b51d31b9d7d7;hp=db2b779138bcead4ef2f9c1c1076cc827df37429;hpb=5f82d212861388cc73741917b38f67d773d01549;p=egate.git diff --git a/fml/Makefile b/fml/Makefile index db2b779..08a4b6b 100644 --- a/fml/Makefile +++ b/fml/Makefile @@ -1,23 +1,21 @@ # FML interpreter. Europagate, 1995 # -# $Id: Makefile,v 1.3 1995/02/09 16:06:04 adam Exp $ +# $Id: Makefile,v 1.15 1995/04/17 09:32:08 adam Exp $ SHELL=/bin/sh -INCLUDE=-I../include +INCLUDE=-I../include -I. $(REGEXINC) TPROG1=fmltest -CFLAGS=-g -Wall -pedantic -DEFS=$(INCLUDE) -LIB=fml.a +#CFLAGS=-g -Wall -pedantic +CPP=$(CC) -E +DEFS=$(INCLUDE) -DUSE_GNU_REGEX=1 +LIB=../lib/fml.a PO = fmltoken.o fmlmem.o fml.o fmlsym.o fmlrel.o fmlarit.o fmllist.o \ -fmlcall.o fmlcalls.o - -CPP=cc -E -CC=gcc +fmlcall.o fmlcalls.o fmlmarc.o fmlstr.o all: $(LIB) $(TPROG1) $(TPROG2) $(TPROG1): $(TPROG1).o $(LIB) - $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) + $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/util.a $(REGEXOBJ) $(LIB): $(PO) rm -f $(LIB) @@ -33,14 +31,14 @@ clean: depend: depend2 depend1: - mv Makefile Makefile.tmp - sed '/^#Depend/q' Makefile - $(CPP) $(INCLUDE) -M *.c >>Makefile - -rm Makefile.tmp + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile depend2: - $(CPP) $(INCLUDE) -M *.c >.depend + $(CPP) $(DEFS) -M *.c >.depend +#GNU make style depend ifeq (.depend,$(wildcard .depend)) include .depend endif