freebsd-ports/security/labrea/files/patch-Makefile
Yen-Ming Lee 694719be91 respect CC and CFLAGS, and unbreak LaBrea on ia64 and alpha.
refine description.

Noticed by:	kris and bento
2003-06-25 02:44:50 +00:00

22 lines
833 B
Text

--- Makefile.orig Thu Feb 21 00:27:56 2002
+++ Makefile Wed Jun 25 10:36:50 2003
@@ -3,14 +3,15 @@
OPTFLAGS = -O6 -funroll-loops -frerun-cse-after-loop -finline-functions \
-mcpu=i686 -fexpensive-optimizations -fomit-frame-pointer
#OPTFLAGS = -g
-CC = gcc
-CFLAGS = -Wall `libnet-config --defines` $(OPTFLAGS) $(INCLUDES)
+CC ?= gcc
+CFLAGS += -Wall `libnet-config --defines` -DCONFIG_PATH=\"$(PREFIX)/etc\" $(INCLUDES)
LDLIBS = `libnet-config --libs` -lpcap
-LDFLAGS = -s
-INCLUDES = -I/usr/include/pcap
+LDFLAGS = -s -L$(PREFIX)/lib
+INCLUDES = -I/usr/include/pcap -I$(PREFIX)/include
LaBrea: LaBrea.o CleanExit.o FixArrays.o GoDaemon.o \
PacketHandler.o ServiceTimer.o ToggleLogging.o
+ $(CC) -o LaBrea $> $(LDFLAGS) $(LDLIBS)
LaBrea.o: LaBrea.c labrea.h defines.h
CleanExit.o: CleanExit.c labrea.h defines.h