mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-24 07:06:36 +00:00
ip2net,mdig : update makefile to support win compile
This commit is contained in:
parent
4230a9ae32
commit
481c4e34d8
@ -3,7 +3,8 @@ CFLAGS += -std=gnu99 -Wno-logical-op-parentheses -O3
|
|||||||
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-switch
|
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-switch
|
||||||
CFLAGS_MAC = -mmacosx-version-min=10.8
|
CFLAGS_MAC = -mmacosx-version-min=10.8
|
||||||
LIBS =
|
LIBS =
|
||||||
SRC_FILES = *.c
|
LIBS_WIN = -lws2_32
|
||||||
|
SRC_FILES = ip2net.c qsort.c
|
||||||
|
|
||||||
all: ip2net
|
all: ip2net
|
||||||
|
|
||||||
@ -17,5 +18,8 @@ mac: $(SRC_FILES)
|
|||||||
$(CC) $(CFLAGS) $(CFLAGS_BSD) $(CFLAGS_MAC) -o ip2net $(SRC_FILES) $(LDFLAGS) $(LIBS)
|
$(CC) $(CFLAGS) $(CFLAGS_BSD) $(CFLAGS_MAC) -o ip2net $(SRC_FILES) $(LDFLAGS) $(LIBS)
|
||||||
strip ip2net
|
strip ip2net
|
||||||
|
|
||||||
|
win: $(SRC_FILES)
|
||||||
|
$(CC) $(CFLAGS) -o ip2net $(SRC_FILES) $(LDFLAGS) $(LIBS_WIN)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ip2net *.o
|
rm -f ip2net *.o
|
||||||
|
@ -3,6 +3,7 @@ CFLAGS += -std=gnu99 -Wno-logical-op-parentheses -O3
|
|||||||
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-switch
|
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-switch
|
||||||
CFLAGS_MAC = -mmacosx-version-min=10.8
|
CFLAGS_MAC = -mmacosx-version-min=10.8
|
||||||
LIBS = -lpthread
|
LIBS = -lpthread
|
||||||
|
LIBS_WIN = -lws2_32
|
||||||
SRC_FILES = *.c
|
SRC_FILES = *.c
|
||||||
|
|
||||||
all: mdig
|
all: mdig
|
||||||
@ -17,5 +18,8 @@ mac: $(SRC_FILES)
|
|||||||
$(CC) $(CFLAGS) $(CFLAGS_BSD) $(CFLAGS_MAC) -o mdig $(SRC_FILES) $(LDFLAGS) $(LIBS)
|
$(CC) $(CFLAGS) $(CFLAGS_BSD) $(CFLAGS_MAC) -o mdig $(SRC_FILES) $(LDFLAGS) $(LIBS)
|
||||||
strip mdig
|
strip mdig
|
||||||
|
|
||||||
|
win: $(SRC_FILES)
|
||||||
|
$(CC) $(CFLAGS) -o mdig -static $(SRC_FILES) $(LDFLAGS) $(LIBS_WIN)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f mdig *.o
|
rm -f mdig *.o
|
||||||
|
Loading…
Reference in New Issue
Block a user