Debian Codegraph @

src/cxx/Makefile.vc

raw
1 CXXFLAGS = /nologo /O2 /EHsc /Zi
2 BIN = ..\python\compreffor
3
4 SRC_NAME = cffCompressor
5 LIB_NAME = compreff
6
7 TARGET_EXE = $(BIN)\$(SRC_NAME).exe
8 TARGET_DLL = $(BIN)\$(LIB_NAME).dll
9
10 all: exe dll
11
12 exe: $(TARGET_EXE)
13
14 $(TARGET_EXE): $(SRC_NAME).obj
15 $(CXX) $(CXXFLAGS) /Fe$@ $(SRC_NAME).obj
16
17 $(SRC_NAME).obj: $(SRC_NAME).cc $(SRC_NAME).h
18 $(CXX) $(CXXFLAGS) /c $(SRC_NAME).cc
19
20 dll: $(TARGET_DLL)
21
22 $(TARGET_DLL): $(SRC_NAME).cc $(SRC_NAME).h
23 $(CXX) $(CXXFLAGS) /Fe$@ $(SRC_NAME).cc /LD /link /DEF:$(LIB_NAME).def
24
25 clean:
26 @-if exist $(SRC_NAME).obj del /f /q $(SRC_NAME).obj
27 @-if exist $(TARGET_EXE) del /f /q $(TARGET_EXE)
28 @-if exist $(BIN)\$(SRC_NAME).ilk del /f /q $(BIN)\$(SRC_NAME).ilk
29 @-if exist $(BIN)\$(SRC_NAME).pdb del /f /q $(BIN)\$(SRC_NAME).pdb
30 @-if exist $(TARGET_DLL) del /f /q $(TARGET_DLL)
31 @-if exist $(BIN)\$(LIB_NAME).exp del /f /q $(BIN)\$(LIB_NAME).exp
32 @-if exist $(BIN)\$(LIB_NAME).lib del /f /q $(BIN)\$(LIB_NAME).lib
33 @-if exist $(BIN)\$(LIB_NAME).ilk del /f /q $(BIN)\$(LIB_NAME).ilk
34 @-if exist $(BIN)\$(LIB_NAME).pdb del /f /q $(BIN)\$(LIB_NAME).pdb