summaryrefslogtreecommitdiff
blob: 4d1d2f01c6436c103324847969e18ff75791d0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,11 @@
-CC = gcc
 LD = $(CC)
 RM = rm -f
-CFLAGS = -Wall -O2 -fomit-frame-pointer
-LDFLAGS = -s
 
-PCAP_H = -I/usr/include/pcap
-PCAP_L = -lpcap
+PCAP_H = $(shell pcap-config --cflags)
+PCAP_L = $(shell pcap-config --libs)
 
-NIDS_H = -I/usr/local/include
-NIDS_L = -L/usr/local/lib -lnids -lnet -lpcap
+NIDS_H = -I/usr/include
+NIDS_L = -lnids
 
 PROJ = scanlogd