Last active
December 22, 2015 16:54
-
-
Save Tosainu/50cd79195155dbb77011 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nyan! | |
TARGET = out | |
SRC = http_client.cc | |
# compiler configs | |
CFLAGS = /nologo /c /EHsc /GL /GS /Gy /MD /MP /O2 /W3 /Zi /sdl /Fd:$(TARGET).pdb | |
INCPATH = /I"$(BOOST_INCLUDEDIR)" /I"$(OPENSSL_INCLUDEDIR)" | |
DEFINES = /D_WIN32_WINNT=0x0601 | |
# linker configs | |
LDFLAGS = /nologo /subsystem:console /LTCG /OPT:REF /OPT:ICF /pdb:$(TARGET).pdb | |
LIBPATH = /LIBPATH:"$(BOOST_LIBRARYDIR)" /LIBPATH:"$(OPENSSL_LIBRARYDIR)" | |
LIBS = advapi32.lib gdi32.lib user32.lib libeay64.lib ssleay64.lib | |
all: $(TARGET).exe | |
.cc{.\}.obj: | |
cl $(CFLAGS) $(INCPATH) $(DEFINES) $< | |
$(TARGET).exe: .\*.obj | |
link $(LDFLAGS) $(LIBPATH) /out:$@ $(LIBS) .\*.obj | |
clean: | |
-@erase /q $(TARGET).exe $(TARGET).pdb | |
-@erase /Q .\*.obj |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment