File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ CFLAGS += -std=gnu99 -Wno-logical-op-parentheses -O3
3
3
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-switch
4
4
CFLAGS_MAC = -mmacosx-version-min=10.8
5
5
LIBS =
6
- SRC_FILES = *.c
6
+ LIBS_WIN = -lws2_32
7
+ SRC_FILES = ip2net.c qsort.c
7
8
8
9
all : ip2net
9
10
@@ -17,5 +18,8 @@ mac: $(SRC_FILES)
17
18
$(CC ) $(CFLAGS ) $(CFLAGS_BSD ) $(CFLAGS_MAC ) -o ip2net $(SRC_FILES ) $(LDFLAGS ) $(LIBS )
18
19
strip ip2net
19
20
21
+ win : $(SRC_FILES )
22
+ $(CC ) $(CFLAGS ) -o ip2net $(SRC_FILES ) $(LDFLAGS ) $(LIBS_WIN )
23
+
20
24
clean :
21
25
rm -f ip2net * .o
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ CFLAGS += -std=gnu99 -Wno-logical-op-parentheses -O3
3
3
CFLAGS_BSD = -Wno-address-of-packed-member -Wno-switch
4
4
CFLAGS_MAC = -mmacosx-version-min=10.8
5
5
LIBS = -lpthread
6
+ LIBS_WIN = -lws2_32
6
7
SRC_FILES = *.c
7
8
8
9
all : mdig
@@ -17,5 +18,8 @@ mac: $(SRC_FILES)
17
18
$(CC ) $(CFLAGS ) $(CFLAGS_BSD ) $(CFLAGS_MAC ) -o mdig $(SRC_FILES ) $(LDFLAGS ) $(LIBS )
18
19
strip mdig
19
20
21
+ win : $(SRC_FILES )
22
+ $(CC ) $(CFLAGS ) -o mdig -static $(SRC_FILES ) $(LDFLAGS ) $(LIBS_WIN )
23
+
20
24
clean :
21
25
rm -f mdig * .o
You can’t perform that action at this time.
0 commit comments