zapret/ip2net/Makefile

18 lines
362 B
Makefile
Raw Normal View History

2021-03-04 11:30:38 +00:00
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