iptables-parser/Makefile

15 lines
306 B
Makefile
Raw Normal View History

2023-10-24 07:09:29 -04:00
CC=gcc
CFLAGS=
SFLAGS=-shared -fPIC
DEBUG=-g
2023-10-24 07:09:29 -04:00
TARGET_DIR=lib
parser_lib.so: $(TARGET_DIR)
$(CC) $(SFLAGS) src/iptables_parser.c -o $(TARGET_DIR)/$@
2023-10-24 07:09:29 -04:00
parser: $(TARGET_DIR)
$(CC) src/iptables_parser.c -o $(TARGET_DIR)/$@
parser_dbg: $(TARGET_DIR)
$(CC) $(DEBUG) src/iptables_parser.c -o $(TARGET_DIR)/$@