You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
610 B

Index: Makefile
--- Makefile.orig 2012-12-30 17:43:16.000000000 +0100
+++ Makefile 2012-12-31 23:39:30.000000000 +0100
@@ -1,9 +1,10 @@
VERSION=3.3
-CC?=gcc
-CFLAGS?=-g -O2 -Wall
-CPPFLAGS+=-I. -DVERSION=\"$(VERSION)\"
-prefix?=/usr/local
+CC=gcc
+CFLAGS=-Wall -I. -DVERSION=\"$(MAJOR).$(MINOR)\"
+LDFLAGS=
+LIBS=-lz
+prefix=/usr/local
OBJS= debug.o \
hash.o \
sio.o \
@@ -19,8 +20,11 @@
deps:
makedepend -Y -I. *.c *.c
+.c.o:
+ $(CC) $(CFLAGS) -c -o $@ $<
+
cvsps: $(OBJS)
- $(CC) -o cvsps $(OBJS) -lz
+ $(CC) -o cvsps $(OBJS) $(LDFLAGS) $(LIBS)
check:
@(cd test >/dev/null; make --quiet)