694719be91
refine description. Noticed by: kris and bento
22 lines
833 B
Text
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
|