The rudiments of an asynchronous server.
[yaz-moved-to-github.git] / server / Makefile
1 # Copyright (C) 1994, Index Data I/S 
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.1 1995-03-10 18:22:44 quinn Exp $
5
6 SHELL=/bin/sh
7 INCLUDE=-I../include -I. -I../asn -I../odr -I../../egate/include -I../../xtimosi/src
8 #CFLAGS=-Wall -pedantic -g
9 #CFLAGS=-g
10 DEFS=$(INCLUDE)
11 LIB= server.a 
12 PO = eventl.o 
13 CPP=cc -E
14 #CC=checkergcc
15
16 all: $(LIB)
17
18 alll:
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] test core mon.out gmon.out errlist tst cli
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