Add support for a tags file to the build system.
[cvsps-yd.git] / Makefile
blob94afa3e27e839f6a5b2b78146fc23b14a6353bd1
1 MAJOR=2
2 MINOR=1
3 CC?=gcc
4 CFLAGS?=-g -O2 -Wall
5 CPPFLAGS?=-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 tags: *.c *.h cbtcommon/*.c cbtcommon/*.h
36 ctags *.c *.h cbtcommon/*.c cbtcommon/*.h
38 clean:
39 rm -f cvsps *.o cbtcommon/*.o core tags
41 .PHONY: install clean
42 # DO NOT DELETE
44 cache.o: ./cbtcommon/hash.h ./cbtcommon/list.h ./cbtcommon/inline.h
45 cache.o: ./cbtcommon/debug.h cache.h cvsps_types.h cvsps.h util.h
46 cap.o: ./cbtcommon/debug.h ./cbtcommon/inline.h ./cbtcommon/text_util.h cap.h
47 cap.o: cvs_direct.h
48 cvs_direct.o: ./cbtcommon/debug.h ./cbtcommon/inline.h
49 cvs_direct.o: ./cbtcommon/text_util.h ./cbtcommon/tcpsocket.h
50 cvs_direct.o: ./cbtcommon/sio.h cvs_direct.h util.h
51 cvsps.o: ./cbtcommon/hash.h ./cbtcommon/list.h ./cbtcommon/inline.h
52 cvsps.o: ./cbtcommon/list.h ./cbtcommon/text_util.h ./cbtcommon/debug.h
53 cvsps.o: ./cbtcommon/rcsid.h cache.h cvsps_types.h cvsps.h util.h stats.h
54 cvsps.o: cap.h cvs_direct.h list_sort.h
55 list_sort.o: list_sort.h ./cbtcommon/list.h
56 stats.o: ./cbtcommon/hash.h ./cbtcommon/list.h ./cbtcommon/inline.h
57 stats.o: cvsps_types.h cvsps.h
58 util.o: ./cbtcommon/debug.h ./cbtcommon/inline.h util.h
59 cbtcommon/debug.o: cbtcommon/debug.h ./cbtcommon/inline.h cbtcommon/rcsid.h
60 cbtcommon/hash.o: cbtcommon/debug.h ./cbtcommon/inline.h cbtcommon/hash.h
61 cbtcommon/hash.o: ./cbtcommon/list.h cbtcommon/rcsid.h
62 cbtcommon/sio.o: cbtcommon/sio.h cbtcommon/rcsid.h
63 cbtcommon/tcpsocket.o: cbtcommon/tcpsocket.h cbtcommon/debug.h
64 cbtcommon/tcpsocket.o: ./cbtcommon/inline.h cbtcommon/rcsid.h
65 cbtcommon/text_util.o: cbtcommon/text_util.h cbtcommon/rcsid.h