mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 05:22:58 +03:00
Merge pull request #21 from ryzhovau/cross-compile
Cross-compile friendly Makefiles
This commit is contained in:
commit
5d92f5e0df
@ -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
|
||||
|
@ -1,12 +1,12 @@
|
||||
CC = gcc
|
||||
CFLAGS = -s
|
||||
CC ?= gcc
|
||||
CFLAGS += -s
|
||||
LIBS =
|
||||
SRC_FILES = *.c
|
||||
|
||||
all: tpws
|
||||
|
||||
tpws: $(SRC_FILES)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f tpws *.o
|
||||
|
Loading…
x
Reference in New Issue
Block a user