dc2ae88d9602d983a124f0396a2ae9f3d590899f
[pazpar2-moved-to-github.git] / src / Makefile
1 # ParaZ. Copyright (C) 2000-2004, Index Data ApS
2 # All rights reserved.
3 # $Id: Makefile,v 1.3 2006-12-27 21:11:10 quinn Exp $
4
5 SHELL=/bin/sh
6
7 CC=gcc
8
9 YAZCONF=yaz/yaz-config
10 YAZLIBS=`$(YAZCONF) --libs`
11 YAZCFLAGS=`$(YAZCONF) --cflags`
12
13 PROG=pazpar2
14 PROGO=pazpar2.o eventl.o util.o command.o http.o http_command.o termlists.o \
15                 reclists.o relevance.o config.o
16
17 all: $(PROG)
18
19 $(PROG): $(PROGO)
20         $(CC) $(CFLAGS) $(YAZCFLAGS) -o $(PROG) $(PROGO) $(YAZLIBS)
21
22 .c.o:
23         $(CC) -c $(CFLAGS) -I. $(YAZCFLAGS) $<
24
25 clean:
26         rm -f *.[oa] test core mon.out gmon.out errlist $(PROG)
27
28
29 ## Dependencies go below
30
31 command.o: command.c command.h util.h eventl.h pazpar2.h termlists.h \
32   relevance.h reclists.h
33 config.o: config.c config.h
34 eventl.o: eventl.c eventl.h
35 http.o: http.c command.h util.h eventl.h pazpar2.h termlists.h \
36   relevance.h reclists.h http.h http_command.h
37 http_command.o: http_command.c command.h util.h eventl.h pazpar2.h \
38   termlists.h relevance.h reclists.h http.h http_command.h
39 pazpar2.o: pazpar2.c pazpar2.h termlists.h relevance.h reclists.h \
40   eventl.h command.h http.h config.h
41 reclists.o: reclists.c pazpar2.h termlists.h relevance.h reclists.h \
42   eventl.h
43 relevance.o: relevance.c relevance.h pazpar2.h termlists.h eventl.h \
44   reclists.h
45 termlists.o: termlists.c termlists.h
46 util.o: util.c