summaryrefslogtreecommitdiff
path: root/security/labrea/files/patch-Makefile
blob: b44a519083490c83add174e7406fda8d1d15ed1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- 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