mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
7813f10632
Note: The Sourceforge version is bit-rotted. This has been tested on amd64; there are no docs installed (yet).
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
--- 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)
|