ip2net Makefie regression

This commit is contained in:
bol-van 2021-03-05 21:01:17 +03:00
parent 3fbeba03a6
commit 4a54b217e2

View File

@ -1,17 +1,21 @@
CC ?= gcc CC ?= gcc
CFLAGS += -std=gnu99 -s -O3 CFLAGS += -std=gnu99 -O3
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-logical-op-parentheses -Wno-switch CFLAGS_BSD = -Wno-address-of-packed-member -Wno-logical-op-parentheses -Wno-switch
CFLAGS_MAC = -mmacosx-version-min=10.8
STRIP = -s
LIBS = LIBS =
SRC_FILES = *.c SRC_FILES = *.c
all: ip2net all: ip2net
mac: bsd
ip2net: $(SRC_FILES) ip2net: $(SRC_FILES)
$(CC) $(CFLAGS) -o $@ $(SRC_FILES) $(LDFLAGS) $(LIBS) $(CC) $(STRIP) $(CFLAGS) -o $@ $(SRC_FILES) $(LDFLAGS) $(LIBS)
bsd: $(SRC_FILES) bsd: $(SRC_FILES)
$(CC) $(CFLAGS) $(CFLAGS_BSD) -o ip2net $(SRC_FILES) $(LDFLAGS) $(LIBS) $(CC) $(STRIP) $(CFLAGS) $(CFLAGS_BSD) -o ip2net $(SRC_FILES) $(LDFLAGS) $(LIBS)
mac: $(SRC_FILES)
$(CC) $(CFLAGS) $(CFLAGS_BSD) $(CFLAGS_MAC) -o ip2net $(SRC_FILES) $(LDFLAGS) $(LIBS)
clean: clean:
rm -f ip2net *.o rm -f ip2net *.o