From 4a54b217e250692e3eba8ef7875fc4f56f3a9387 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 5 Mar 2021 21:01:17 +0300 Subject: [PATCH] ip2net Makefie regression --- ip2net/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ip2net/Makefile b/ip2net/Makefile index 782954e..7e4e483 100644 --- a/ip2net/Makefile +++ b/ip2net/Makefile @@ -1,17 +1,21 @@ 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_MAC = -mmacosx-version-min=10.8 +STRIP = -s LIBS = SRC_FILES = *.c all: ip2net -mac: bsd ip2net: $(SRC_FILES) - $(CC) $(CFLAGS) -o $@ $(SRC_FILES) $(LDFLAGS) $(LIBS) + $(CC) $(STRIP) $(CFLAGS) -o $@ $(SRC_FILES) $(LDFLAGS) $(LIBS) 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: rm -f ip2net *.o