degrade-cvs_direct-failure.p
[cvsps/4msysgit.git] / Makefile
bloba29654aa3f979bb8359d45c56eeaf8a90c0c3a3c
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 tsearch/tsearch.o\
9 tsearch/twalk.o\
10 tsearch/tdelete.o\
11 tsearch/tfind.o\
12 strsep.o\
13 setenv.o\
14 cbtcommon/debug.o\
15 cbtcommon/hash.o\
16 cbtcommon/text_util.o\
17 cbtcommon/sio.o\
18 cbtcommon/tcpsocket.o\
19 cvsps.o\
20 cache.o\
21 util.o\
22 stats.o\
23 cap.o\
24 cvs_direct.o\
25 list_sort.o
27 #.c.o:
28 # $(CC) $< -o $@
30 all: cvsps
32 cvsps: $(OBJS)
33 $(CC) -o cvsps $(OBJS) -lz -lregex -lwsock32
35 install:
36 [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
37 [ -d $(prefix)/share/man/man1 ] || mkdir -p $(prefix)/share/man/man1
38 install cvsps $(prefix)/bin
39 install -m 644 cvsps.1 $(prefix)/share/man/man1
41 clean:
42 rm -f cvsps *.o tsearch/*.o cbtcommon/*.o core
44 .PHONY: install clean