# Europagate, 1995
#
# $Log: Makefile,v $
-# Revision 1.1 1995/02/15 17:45:29 adam
+# Revision 1.25 1995/05/19 13:25:58 adam
+# Bug fixes. Better command line options.
+#
+# Revision 1.24 1995/05/03 12:18:46 adam
+# This code ran on dtbsun. Minor changes.
+#
+# Revision 1.23 1995/05/03 07:37:29 adam
+# CCL commands stop/continue implemented. New functions gw_res_{int,bool}
+# are used when possible.
+#
+# Revision 1.22 1995/05/01 12:43:26 adam
+# First work on resource monitor program.
+#
+# Revision 1.21 1995/04/20 16:10:45 adam
+# Modified to work with non-blocking zass-api. Not using non-blocking
+# facility yet.
+#
+# Revision 1.20 1995/04/20 15:24:59 quinn
+# *** empty log message ***
+#
+# Revision 1.19 1995/04/19 16:08:20 adam
+# Minor changes.
+#
+# Revision 1.18 1995/04/19 16:01:57 adam
+# Some hacks to get the FIFO communication work!! Isn't reliable.
+# Resource gw.account added - default account info.
+#
+# Revision 1.17 1995/04/19 10:46:17 adam
+# Persistency works much better now. New command: status - history-like
+#
+# Revision 1.16 1995/04/19 07:30:56 adam
+# First work on Z39.50 persistence.
+#
+# Revision 1.15 1995/04/17 11:27:29 quinn
+# Smallish
+#
+# Revision 1.14 1995/04/17 09:34:23 adam
+# Timeout (idletime) adjustable. Minor changes in kernel.
+#
+# Revision 1.13 1995/03/27 12:51:04 adam
+# New log level in use: GW_LOG_ERRNO.
+#
+# Revision 1.12 1995/03/27 08:23:57 adam
+# First use of gip interface and gw-db.
+# First work on eti program.
+#
+# Revision 1.11 1995/03/03 17:19:09 adam
+# Smarter presentation. Bug fix in email header interpretation.
+#
+# Revision 1.10 1995/03/01 14:32:24 adam
+# Better diagnostics. Default is, that only one database selected when
+# several are known.
+#
+# Revision 1.9 1995/02/23 08:32:14 adam
+# Changed header.
+#
+# Revision 1.7 1995/02/22 08:51:34 adam
+# Output function can be customized in fml, which is used to print
+# the reply to reply_fd.
+#
+# Revision 1.6 1995/02/21 14:00:08 adam
+# Minor changes.
+#
+# Revision 1.5 1995/02/21 12:11:59 adam
+# Diagnostic record with error info. observed.
+#
+# Revision 1.4 1995/02/20 21:16:16 adam
+# FML support. Bug fixes. Profile for drewdb.
+#
+# Revision 1.3 1995/02/17 09:08:35 adam
+# Reply with subject. CCL base command implemented.
+#
+# Revision 1.2 1995/02/16 18:35:07 adam
+# First use of Zdist library. Search requests are supported.
+# Present requests are not supported yet.
+#
+# 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
+
+#ZPRE=/home/proj/zdist/zdist102b1-1/libz3950
+#ZINC=-I$(ZPRE)
+#ZLIB=$(ZPRE)/libz3950.a
+
+ZLIB=../../yaz/lib/libyaz.a
+
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)
+#CFLAGS=-g -Wall
+CPP=$(CC) -E
+DEFS=$(INCLUDE) -DUSE_FML=1
+
+PROG1=kernel
+O1=main.o urp.o persist.o
+USELIBS1=../lib/ccl.a ../lib/fml.a ../lib/libzass.a ../lib/libres+log.a \
+../lib/util.a $(ZLIB) $(REGEXOBJ)
+
+PROG2=eti
+O2=eti.o
+USELIBS2=../lib/libres+log.a ../lib/util.a
+
+PROG3=monitor
+O3=monitor.o
+USELIBS3=../lib/libres+log.a ../lib/util.a
+
+all: $(PROG1) $(PROG2) $(PROG3)
+
+$(PROG1): $(O1) $(USELIBS1)
+ $(CC) $(CFLAGS) -o $(PROG1) $(O1) $(USELIBS1) $(NETLIB)
-all: $(TPROG1)
+$(PROG2): $(O2) $(USELIBS2)
+ $(CC) $(CFLAGS) -o $(PROG2) $(O2) $(USELIBS2) $(NETLIB)
-$(TPROG1): $(O) $(USELIBS)
- $(CC) $(CFLAGS) -o $(TPROG1) $(O) $(USELIBS)
+$(PROG3): $(O3) $(USELIBS3)
+ $(CC) $(CFLAGS) -o $(PROG3) $(O3) $(USELIBS3) $(NETLIB)
.c.o:
$(CC) -c $(DEFS) $(CFLAGS) $<
clean:
- rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
+ rm -f *.log *.[oa] $(PROG1) $(PROG2) $(PROG3)
+ rm -f core mon.out gmon.out errlist *~ fifo.*
depend: depend2
depend1:
- mv Makefile Makefile.tmp
- sed '/^#Depend/q' <Makefile.tmp >Makefile
- $(CPP) $(INCLUDE) -M *.c >>Makefile
- -rm Makefile.tmp
+ sed '/^#Depend/q' <Makefile >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