-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.win
30 lines (20 loc) · 1.05 KB
/
Makefile.win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (C) JaeHyuk Cho <mailto:minzkn@minzkn.com>
# All rights reserved.
CC = cl.exe#
LD = link.exe#
RM = del /Q#
THIS_NAME = hwport_ftpd#
#CFLAGS = /nologo /I. /Os /W3 /EHsc /MT /Wp64 /TC /D__mzapi_import__=extern
CFLAGS = /nologo /I. /I./include /Os /W3 /EHsc /MT /TC /D__mzapi_import__=extern /D_CRT_SECURE_NO_WARNINGS=1
LDFLAGS = /nologo /LIBPATH:"." /OPT:REF /OPT:ICF /MACHINE:X86#
TARGET_bin = $(THIS_NAME).exe#
TARGET = $(TARGET_bin)#
OBJECTS_bin = main.obj $(THIS_NAME).obj#
OBJECTS = $(OBJECTS_bin)#
DEPEND_lib = wsock32.lib ws2_32.lib#
all: $(TARGET)
clean: ; $(RM) *.obj *.exp *.lib *.dll $(TARGET)
rebuild: clean all
$(TARGET_bin): $(OBJECTS_bin) ; $(LD) $(LDFLAGS) /SUBSYSTEM:CONSOLE /OUT:"$(@)" $(OBJECTS_bin) $(DEPEND_lib)
%.obj: souroce/%.c ; $(CC) $(CFLAGS) /c $(**)
# End of Makefile.win