Parse success, python ctypes struct to library connected
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,10 +1,14 @@
|
||||
CC=gcc
|
||||
CFLAGS=
|
||||
SFLAGS=-shared -fPIC
|
||||
DEBUG=-g
|
||||
TARGET_DIR=lib
|
||||
|
||||
parser_lib.so: $(TARGET_DIR)
|
||||
$(CC) $(SFLAGS) iptables_parser_lib.c -o $(TARGET_DIR)/$@
|
||||
$(CC) $(SFLAGS) src/iptables_parser.c -o $(TARGET_DIR)/$@
|
||||
|
||||
parser: $(TARGET_DIR)
|
||||
$(CC) iptables_parser.c -o $(TARGET_DIR)/$@
|
||||
$(CC) src/iptables_parser.c -o $(TARGET_DIR)/$@
|
||||
|
||||
parser_dbg: $(TARGET_DIR)
|
||||
$(CC) $(DEBUG) src/iptables_parser.c -o $(TARGET_DIR)/$@
|
||||
|
||||
Reference in New Issue
Block a user