# FML interpreter. Europagate, 1995 # # $Id: Makefile,v 1.11 1995/02/23 08:32:03 adam Exp $ SHELL=/bin/sh INCLUDE=-I../include -I. TPROG1=fmltest CFLAGS=-g -Wall -pedantic CPP=$(CC) -E DEFS=$(INCLUDE) LIB=../lib/fml.a PO = fmltoken.o fmlmem.o fml.o fmlsym.o fmlrel.o fmlarit.o fmllist.o \ fmlcall.o fmlcalls.o fmlmarc.o fmlstr.o all: $(LIB) $(TPROG1) $(TPROG2) $(TPROG1): $(TPROG1).o $(LIB) $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/util.a $(LIB): $(PO) rm -f $(LIB) ar qc $(LIB) $(PO) ranlib $(LIB) .c.o: $(CC) -c $(DEFS) $(CFLAGS) $< clean: rm -f *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist depend: depend2 depend1: mv Makefile Makefile.tmp sed '/^#Depend/q' Makefile $(CPP) $(INCLUDE) -M *.c >>Makefile -rm Makefile.tmp depend2: $(CPP) $(INCLUDE) -M *.c >.depend ifeq (.depend,$(wildcard .depend)) include .depend endif #Depend --- DOT NOT DELETE THIS LINE