mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03:00
18 lines
362 B
Makefile
18 lines
362 B
Makefile
|
CC ?= gcc
|
||
|
CFLAGS += -std=gnu99 -s -O3
|
||
|
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-logical-op-parentheses -Wno-switch
|
||
|
LIBS =
|
||
|
SRC_FILES = *.c
|
||
|
|
||
|
all: ip2net
|
||
|
mac: bsd
|
||
|
|
||
|
ip2net: $(SRC_FILES)
|
||
|
$(CC) $(CFLAGS) -o $@ $(SRC_FILES) $(LDFLAGS) $(LIBS)
|
||
|
|
||
|
bsd: $(SRC_FILES)
|
||
|
$(CC) $(CFLAGS) $(CFLAGS_BSD) -o ip2net $(SRC_FILES) $(LDFLAGS) $(LIBS)
|
||
|
|
||
|
clean:
|
||
|
rm -f ip2net *.o
|