# Makefile for Email gateway CCL # Europagate, 1995 # # $Log: Makefile,v $ # Revision 1.1 1995/02/15 17:45:29 adam # First version of email gateway kernel. Email requests are read # from stdin. The output is transferred to an MTA if 'From' is # found in the header - or stdout if absent. No Z39.50 client is used. # # SHELL=/bin/sh INCLUDE=-I../include CFLAGS=-g -Wall -pedantic -ansi CC=gcc TPROG1=kernel O=urp.o main.o CPP=cc -E USELIBS=../lib/ccl.a ../lib/fml.a ../lib/libres+log.a ../lib/util.a DEFS=$(INCLUDE) all: $(TPROG1) $(TPROG1): $(O) $(USELIBS) $(CC) $(CFLAGS) -o $(TPROG1) $(O) $(USELIBS) .c.o: $(CC) -c $(DEFS) $(CFLAGS) $< clean: rm -f *.log *.[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