Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Darwin.mak
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OS X
CC = MACOSX_DEPLOYMENT_TARGET="10.3" gcc
LUA = lua
LDFLAGS = -fno-common -bundle -undefined dynamic_lookup
CLUA=-I/usr/local/include
LLUA=-llua

LLUA=-l${LUA}
6 changes: 6 additions & 0 deletions FreeBSD.mak
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# FreeBSD
CC = clang
LDFLAGS = -fPIC -fno-common -shared
LUA = lua51
CLUA=-I/usr/local/include -I/usr/local/include/${LUA}
LLUA=-llua-5.1
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ echo:
test: pcap.test $(TOUT)

%.test: %.lua net.so
lua $<
$(LUA) $<
touch $@

%.test: %-test %.so
lua $<
$(LUA) $<
touch $@

%.test: %-test net.so
lua $<
$(LUA) $<
touch $@

doc: README.txt
Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ systems.
The binding doesn't implement the full libpcap API, just what we've needed so
far.

To build, see Makefile, it supports Linux and OS X.
To build, see Makefile, it supports FreeBSD, Linux and OS X.

To decode the packets, you might want to use libnet's lua bindings, see the
lua/ subdirectory of <https://github.com/sam-github/libnet>.
Expand Down
2 changes: 1 addition & 1 deletion README.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ systems.
The binding doesn't implement the full libpcap API, just what we've needed so
far.

To build, see Makefile, it supports Linux and OS X.
To build, see Makefile, it supports FreeBSD, Linux and OS X.

To decode the packets, you might want to use libnet's lua bindings, see the
lua/ subdirectory of <https://github.com/sam-github/libnet>.
Expand Down