Use regex.[ch] from msysGit's /git
[cvsps/4msysgit.git] / Makefile
blob6e1080f346192fed97371178cfdd12812cc4c719
1 MAJOR=2
2 MINOR=1
3 CC=gcc
4 CFLAGS=-g -O2 -Wall
5 CFLAGS+=-I. -I/git/compat -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 /git/compat/regex.c -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