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