mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 12:10:53 +03:00
ip2net,mdig: improve makefile for windows
This commit is contained in:
parent
147af10b61
commit
3098727f4c
@ -1,6 +1,7 @@
|
||||
CC ?= gcc
|
||||
CFLAGS += -std=gnu99 -Wno-logical-op-parentheses -O3
|
||||
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-switch
|
||||
CFLAGS_WIN = -static
|
||||
LIBS =
|
||||
LIBS_WIN = -lws2_32
|
||||
SRC_FILES = ip2net.c qsort.c
|
||||
@ -21,7 +22,7 @@ mac: $(SRC_FILES)
|
||||
rm -f ip2netx ip2neta
|
||||
|
||||
win: $(SRC_FILES)
|
||||
$(CC) $(CFLAGS) -o ip2net $(SRC_FILES) $(LDFLAGS) $(LIBS_WIN)
|
||||
$(CC) -s $(CFLAGS) $(CFLAGS_WIN) -o ip2net $(SRC_FILES) $(LDFLAGS) $(LIBS_WIN)
|
||||
|
||||
clean:
|
||||
rm -f ip2net *.o
|
||||
|
@ -1,6 +1,7 @@
|
||||
CC ?= gcc
|
||||
CFLAGS += -std=gnu99 -Wno-logical-op-parentheses -O3
|
||||
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-switch
|
||||
CFLAGS_WIN = -static
|
||||
LIBS = -lpthread
|
||||
LIBS_WIN = -lws2_32
|
||||
SRC_FILES = *.c
|
||||
@ -21,7 +22,7 @@ mac: $(SRC_FILES)
|
||||
rm -f mdigx mdiga
|
||||
|
||||
win: $(SRC_FILES)
|
||||
$(CC) $(CFLAGS) -o mdig -static $(SRC_FILES) $(LDFLAGS) $(LIBS_WIN)
|
||||
$(CC) -s $(CFLAGS) $(CFLAGS_WIN) -o mdig $(SRC_FILES) $(LDFLAGS) $(LIBS_WIN)
|
||||
|
||||
clean:
|
||||
rm -f mdig *.o
|
||||
|
Loading…
Reference in New Issue
Block a user