Dependency handling
[cvsps-yd.git] / Makefile
blob2e34ec6b2844c14dba44d53c6ffe82ebcdad4cef
1 MAJOR=2
2 MINOR=1
3 CC?=gcc
4 CFLAGS?=-g -O2 -Wall
5 CFLAGS+=-I. -DVERSION=\"$(MAJOR).$(MINOR)\"
6 prefix?=/usr/local
7 OBJS=\
8 cbtcommon/debug.o\
9 cbtcommon/hash.o\
10 cbtcommon/text_util.o\
11 cbtcommon/sio.o\
12 cbtcommon/tcpsocket.o\
13 cvsps.o\
14 cache.o\
15 util.o\
16 stats.o\
17 cap.o\
18 cvs_direct.o\
19 list_sort.o
21 all: cvsps
23 deps:
24 makedepend -Y -I. *.c cbtcommon/*.c
26 cvsps: $(OBJS)
27 $(CC) -o cvsps $(OBJS) -lz
29 install:
30 [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
31 [ -d $(prefix)/share/man/man1 ] || mkdir -p $(prefix)/share/man/man1
32 install cvsps $(prefix)/bin
33 install -m 644 cvsps.1 $(prefix)/share/man/man1
35 clean:
36 rm -f cvsps *.o cbtcommon/*.o core
38 .PHONY: install clean
39 # DO NOT DELETE
41 cache.o: ./cbtcommon/hash.h ./cbtcommon/list.h ./cbtcommon/inline.h
42 cache.o: ./cbtcommon/debug.h cache.h cvsps_types.h cvsps.h util.h
43 cap.o: ./cbtcommon/debug.h ./cbtcommon/inline.h ./cbtcommon/text_util.h cap.h
44 cap.o: cvs_direct.h
45 cvs_direct.o: ./cbtcommon/debug.h ./cbtcommon/inline.h
46 cvs_direct.o: ./cbtcommon/text_util.h ./cbtcommon/tcpsocket.h
47 cvs_direct.o: ./cbtcommon/sio.h cvs_direct.h util.h
48 cvsps.o: ./cbtcommon/hash.h ./cbtcommon/list.h ./cbtcommon/inline.h
49 cvsps.o: ./cbtcommon/list.h ./cbtcommon/text_util.h ./cbtcommon/debug.h
50 cvsps.o: ./cbtcommon/rcsid.h cache.h cvsps_types.h cvsps.h util.h stats.h
51 cvsps.o: cap.h cvs_direct.h list_sort.h
52 list_sort.o: list_sort.h ./cbtcommon/list.h
53 stats.o: ./cbtcommon/hash.h ./cbtcommon/list.h ./cbtcommon/inline.h
54 stats.o: cvsps_types.h cvsps.h
55 util.o: ./cbtcommon/debug.h ./cbtcommon/inline.h util.h
56 cbtcommon/debug.o: cbtcommon/debug.h ./cbtcommon/inline.h cbtcommon/rcsid.h
57 cbtcommon/hash.o: cbtcommon/debug.h ./cbtcommon/inline.h cbtcommon/hash.h
58 cbtcommon/hash.o: ./cbtcommon/list.h cbtcommon/rcsid.h
59 cbtcommon/sio.o: cbtcommon/sio.h cbtcommon/rcsid.h
60 cbtcommon/tcpsocket.o: cbtcommon/tcpsocket.h cbtcommon/debug.h
61 cbtcommon/tcpsocket.o: ./cbtcommon/inline.h cbtcommon/rcsid.h
62 cbtcommon/text_util.o: cbtcommon/text_util.h cbtcommon/rcsid.h