Skip to content

Commit c3ddd6e

Browse files
committed
Rules to generate options from the system headers
1 parent f611774 commit c3ddd6e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ nfq.so: LDLIBS+=-lnetfilter_queue
5656
nfct.so: nfct.c nflua.h
5757
nfct.so: LDLIBS+=-lnetfilter_conntrack
5858

59+
options:
60+
./luaopts PF /usr/include/bits/socket.h > _pf.c
61+
./luaopts IPPROTO /usr/include/netinet/in.h > _ipproto.c
62+
./luaopts ATTR /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h > _attr.c
63+
./luaopts NFCT_Q /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h > _nfct_q.c
64+
5965
TNET=$(wildcard test-*.lua)
6066
TOUT=$(TNET:.lua=.test)
6167

0 commit comments

Comments
 (0)