freebsd-ports/net/morebalance/files/patch-Makefile
2006-11-03 09:43:36 +00:00

28 lines
570 B
Text

--- Makefile.orig Mon Apr 10 15:42:36 2006
+++ Makefile Fri Nov 3 10:19:18 2006
@@ -1,20 +1,17 @@
VERSION = 0.4
-PCRE=-lpcre
-GNUTLS=-lggz -lgnutls
-ZLIB=-lz
-CC = gcc
-CFLAGS += -Wall -O3 -ggdb3
+CC?= gcc
+CFLAGS += -Wall
OBJECTS = main.o conf.o sys.o magic.o server.o ipban.o filter.o
-prefix = /usr/local
-confprefix = /usr/local/etc
+prefix = ${PREFIX}
+confprefix = ${PREFIX}/etc
all: morebalance
morebalance: $(OBJECTS)
- $(CC) -o $@ $(OBJECTS) -lpthread $(PCRE) $(GNUTLS) $(ZLIB)
+ $(CC) -o $@ $(OBJECTS) $(CFLAGS) $(LDFLAGS)
clean:
rm -f *.o