changeset 26:68229062d9f7

rename former Makefileto GNUmakefile.
author ng0@n0.is
date Fri, 03 May 2019 11:25:19 +0000
parents 472ac0205242
children 9054bdc97401
files GNUmakefile
diffstat 1 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GNUmakefile	Fri May 03 11:25:19 2019 +0000
@@ -0,0 +1,39 @@
+MAJOR=2
+MINOR=2b2
+CC?=clang
+CFLAGS?=-g -O2 -Wall
+CPPFLAGS+=-I. -DVERSION=\"$(MAJOR).$(MINOR)\"
+LDLIBS+=-lz
+PREFIX?=/usr/local
+MANPREFIX?=${PREFIX}/share/man
+PROG=cvsps
+OBJS=\
+	cbtcommon/debug.o\
+	cbtcommon/hash.o\
+	cbtcommon/text_util.o\
+	cbtcommon/sio.o\
+	cbtcommon/tcpsocket.o\
+	cvsps.o\
+	cache.o\
+	util.o\
+	stats.o\
+	cap.o\
+	cvs_direct.o\
+	list_sort.o
+
+all: ${PROG}
+
+cvsps: $(OBJS)
+
+install:
+	install -d ${DESTDIR}${PREFIX}/bin ${MANPREFIX}/man1
+	install -m 755 cvsps ${DESTDIR}${PREFIX}/bin
+	install -m 644 cvsps.1 ${DESTDIR}${MANPREFIX}/man1
+
+clean:
+	rm -f cvsps *.o cbtcommon/*.o core
+
+check:
+	printf "No tests\n"
+
+.PHONY: install clean