Added dict.
[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.1 1994-08-16 16:26:46 adam Exp $
5
6 SHELL=/bin/sh
7 INCLUDE=-I../include
8 TPROG=dicttest
9 CFLAGS=-g -Wall
10 DEFS=$(INCLUDE)
11 LIB=../lib/dict.a 
12 PO = open.o close.o insert.o lookup.o
13 CPP=cc -E
14
15 all: $(LIB)
16
17 $(TPROG): $(TPROG).o $(LIB) 
18         $(CC) -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
30
31 dep depend:
32         $(CPP) $(INCLUDE) -M *.c >.depend
33
34 #ifeq (.depend,$(wildcard .depend))
35 include .depend
36 #endif