Close all compiler's options for debug Sec
[mirror_edk2.git] / Nt32Pkg / Sec / Makefile
1 SOURCE_FILES = $(DEBUG_DIR)\AutoGen.c \
2 $(MODULE_DIR)\Nt32Pkg\Sec\WinNtThunk.c \
3 $(MODULE_DIR)\Nt32Pkg\Sec\FwVol.c \
4 $(MODULE_DIR)\Nt32Pkg\Sec\SecMain.c
5
6 INC = -I$(WORKSPACE)\Nt32Pkg\Sec \
7 -I$(DEBUG_DIR) \
8 -I$(WORKSPACE)\Nt32Pkg \
9 -I$(WORKSPACE)\Nt32Pkg\Include \
10 -I$(WORKSPACE)\MdePkg \
11 -I$(WORKSPACE)\MdePkg\Include\Ia32 \
12 -I$(WORKSPACE)\MdePkg\Include \
13 -I$(WORKSPACE)\MdeModulePkg\Include \
14 -I$(WORKSPACE)\IntelFrameworkPkg\Include
15
16 OBJECTS = $(OUTPUT_DIR)\.\AutoGen.obj \
17 $(OUTPUT_DIR)\.\WinNtThunk.obj \
18 $(OUTPUT_DIR)\.\FwVol.obj \
19 $(OUTPUT_DIR)\.\SecMain.obj
20
21 LIBS = $(LIB_DIR)\BaseDebugLibNull.lib \
22 $(LIB_DIR)\BasePrintLib.lib \
23 $(LIB_DIR)\BaseMemoryLib.lib \
24 $(LIB_DIR)\BaseLib.lib \
25 $(LIB_DIR)\BasePeCoffLib.lib
26
27 MSVS_LINK_LIBPATHS = /LIBPATH:"$(VCINSTALLDIR)\Lib" /LIBPATH:"$(VCINSTALLDIR)\PlatformSdk\Lib"
28 LINK_FLAGS_EXE = /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG \
29 Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib
30 CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /D EFI32 /Od /DSTRING_ARRAY_NAME=SecMainStrings /FIN:\tree\edk2\Build\Nt32Platform\DEBUG_MYTOOLS\IA32\Nt32Pkg\Sec\SecMain\DEBUG/AutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm
31 #CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /D EFI32 /O1ib2 /GL /DSTRING_ARRAY_NAME=${BASE_NAME}Strings /FI${DEST_DIR_DEBUG}/AutoGen.h /EHs-c- /GF /Gs8192 /Fp${DEST_DIR_OUTPUT}/AutoGen.h.gch /Yu${DEST_DIR_DEBUG}/AutoGen.h /Zi /Gm
32 COMMON_DEPS = $(DEBUG_DIR)\AutoGen.h
33
34 all : $(BIN_DIR)\SecMain.exe
35
36 $(BIN_DIR)\SecMain.exe : $(OBJECTS)
37 "$(DLINK)" \
38 $(MSVS_LINK_LIBPATHS) \
39 $(LINK_FLAGS_EXE) \
40 $(OBJECTS) \
41 $(LIBS) \
42 /base:0x10000000 \
43 /out:"$(BIN_DIR)\SecMain.exe" \
44 /pdb:"$(BIN_DIR)\SecMain.pdb"
45
46 #
47 # Individual Object Build Targets
48 #
49 $(OUTPUT_DIR)\.\AutoGen.obj : $(COMMON_DEPS)
50 $(OUTPUT_DIR)\.\AutoGen.obj : $(DEBUG_DIR)\AutoGen.c
51 "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(DEBUG_DIR)\AutoGen.c
52
53 $(OUTPUT_DIR)\.\WinNtThunk.obj : $(COMMON_DEPS)
54 $(OUTPUT_DIR)\.\WinNtThunk.obj : $(MODULE_DIR)\WinNtThunk.c
55 "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)\WinNtThunk.c
56
57 $(OUTPUT_DIR)\.\FwVol.obj : $(COMMON_DEPS)
58 $(OUTPUT_DIR)\.\FwVol.obj : $(MODULE_DIR)\FwVol.c
59 "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)\FwVol.c
60
61 $(OUTPUT_DIR)\.\SecMain.obj : $(COMMON_DEPS)
62 $(OUTPUT_DIR)\.\SecMain.obj : $(MODULE_DIR)\SecMain.c
63 "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)\SecMain.c
64
65 clean:
66 - @if exist $(DEBUG_DIR)\AutoGen.c del $(DEBUG_DIR)\AutoGen.c > NUL
67 del $(DEBUG_DIR)\AutoGen.h > NUL
68 del $(OUTPUT_DIR)\.\*.obj > NUL
69 del $(MODULE_BUILD_DIR)\makefile > NUL
70 del $(MODULE_BUILD_DIR)\*.idb > NUL
71 del $(MODULE_BUILD_DIR)\*.pdb > NUL
72 del $(BIN_DIR)\SecMain.exe > NUL
73 del $(BIN_DIR)\SecMain.pdb > NUL
74
75