Further development of insertion. Some special cases are
[idzebra-moved-to-github.git] / dict / Makefile
1 # Copyright (C) 1994, Index Data I/S 
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.5 1994-09-06 13:05:12 adam Exp $
5
6 SHELL=/bin/sh
7 INCLUDE=-I../include
8 TPROG=dicttest
9 CFLAGS=-Wall -pg -pedantic
10 DEFS=$(INCLUDE)
11 LIB=../lib/dict.a 
12 PO = dopen.o dclose.o drdwr.o open.o close.o insert.o lookup.o 
13 CPP=cc -E
14
15 all: $(LIB)
16
17 $(TPROG): $(TPROG).o $(LIB) 
18         $(CC) $(CFLAGS) -o $(TPROG) $(TPROG).o $(LIB) ../lib/bfile.a ../lib/util.a
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] $(TPROG) core mon.out gmon.out errlist
30
31 dep depend:
32         $(CPP) $(INCLUDE) -M *.c >.depend
33
34 ifeq (.depend,$(wildcard .depend))
35 include .depend
36 endif