mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-24 22:32:58 +03:00
Cross-compile friendly Makefiles
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
CC = gcc
|
||||
CFLAGS = -s
|
||||
CC ?= gcc
|
||||
CFLAGS ?= -s
|
||||
LIBS = -lnetfilter_queue -lnfnetlink
|
||||
SRC_FILES = *.c
|
||||
|
||||
all: nfqws
|
||||
|
||||
nfqws: $(SRC_FILES)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f nfqws *.o
|
||||
|
Reference in New Issue
Block a user