blob: e95a94684e0bf24e69cdfbed9c046a3777173bcf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
--- src/c/Makefile.orig 2007-06-08 23:42:09.000000000 +0100
+++ src/c/Makefile 2010-02-10 16:13:37.000000000 +0000
@@ -8,7 +8,7 @@
JNI_INCLUDE = $(JAVA_DIR)/include
# try to detect your OS using 'uname'
-PLATFORM = $(shell "uname")
+#PLATFORM = $(shell "uname")
ifeq ($(PLATFORM), Linux)
JNI_INCLUDE2 = $(JAVA_DIR)/include/linux
@@ -35,22 +35,23 @@
endif
# Specify where pcap.h is
-PCAP_INCLUDE = /usr/include
+#PCAP_INCLUDE =
+#PCAP_INCLUDE = /usr/include
#PCAP_INCLUDE = /usr/include/pcap
#CC = cl
-CC = gcc
+#CC = gcc
all: libjpcap.so
libjpcap.so: JpcapCaptor.c JpcapSender.c JpcapWriter.c\
packet_arp.c packet_datalink.c packet_icmp.c packet_ip.c\
packet_ipv6.c packet_tcp.c packet_udp.c
- $(CC) $(COMPILE_OPTION) -I$(JNI_INCLUDE) -I$(JNI_INCLUDE2)\
- -I$(PCAP_INCLUDE)\
+ $(CC) $(CFLAGS) $(COMPILE_OPTION) \
+ -I$(JNI_INCLUDE) -I$(JNI_INCLUDE2) \
JpcapCaptor.c JpcapSender.c JpcapWriter.c\
packet_arp.c packet_datalink.c packet_icmp.c packet_ip.c\
packet_ipv6.c packet_tcp.c packet_udp.c\
- -o libjpcap$(SUFFIX) -lpcap
+ -o libjpcap$(SUFFIX) $(LDFLAGS) -lpcap
clean:
-rm libjpcap$(SUFFIX)
|