Initial code of lookup - not tested yet.
[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.7 1994-09-16 15:39:10 adam Exp $
5
6 SHELL=/bin/sh
7 INCLUDE=-I../include
8 TPROG1=dicttest
9 TPROG2=dictext
10 CFLAGS=-O -Wall -g -pedantic
11 DEFS=$(INCLUDE)
12 LIB=../lib/dict.a 
13 PO = dopen.o dclose.o drdwr.o open.o close.o insert.o lookup.o 
14 CPP=cc -E
15
16 all: $(LIB)
17
18 $(TPROG1): $(TPROG1).o $(LIB) 
19         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/bfile.a ../lib/util.a
20
21 $(TPROG2): $(TPROG2).o $(LIB) 
22         $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o ../lib/util.a
23
24
25 $(LIB): $(PO)
26         rm -f $(LIB)
27         ar qc $(LIB) $(PO)
28         ranlib $(LIB)
29
30 .c.o:
31         $(CC) -c $(DEFS) $(CFLAGS) $<
32
33 clean:
34         rm -f *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist
35
36 dep depend:
37         $(CPP) $(INCLUDE) -M *.c >.depend
38
39 ifeq (.depend,$(wildcard .depend))
40 include .depend
41 endif