99c18d432664e3fca906b165953c034782155a36
[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
31 COMMON_DEPS = $(DEBUG_DIR)\AutoGen.h
32
33 all : $(BIN_DIR)\SecMain.exe
34
35 $(BIN_DIR)\SecMain.exe : $(OBJECTS)
36 "$(DLINK)" \
37 $(MSVS_LINK_LIBPATHS) \
38 $(LINK_FLAGS_EXE) \
39 $(OBJECTS) \
40 $(LIBS) \
41 /base:0x10000000 \
42 /out:"$(BIN_DIR)\SecMain.exe" \
43 /pdb:"$(BIN_DIR)\SecMain.pdb"
44
45 #
46 # Individual Object Build Targets
47 #
48 $(OUTPUT_DIR)\.\AutoGen.obj : $(COMMON_DEPS)
49 $(OUTPUT_DIR)\.\AutoGen.obj : $(DEBUG_DIR)\AutoGen.c
50 "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(DEBUG_DIR)\AutoGen.c
51
52 $(OUTPUT_DIR)\.\WinNtThunk.obj : $(COMMON_DEPS)
53 $(OUTPUT_DIR)\.\WinNtThunk.obj : $(MODULE_DIR)\WinNtThunk.c
54 "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)\WinNtThunk.c
55
56 $(OUTPUT_DIR)\.\FwVol.obj : $(COMMON_DEPS)
57 $(OUTPUT_DIR)\.\FwVol.obj : $(MODULE_DIR)\FwVol.c
58 "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)\FwVol.c
59
60 $(OUTPUT_DIR)\.\SecMain.obj : $(COMMON_DEPS)
61 $(OUTPUT_DIR)\.\SecMain.obj : $(MODULE_DIR)\SecMain.c
62 "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)\SecMain.c
63
64 clean:
65 - @if exist $(DEBUG_DIR)\AutoGen.c del $(DEBUG_DIR)\AutoGen.c > NUL
66 del $(DEBUG_DIR)\AutoGen.h > NUL
67 del $(OUTPUT_DIR)\.\*.obj > NUL
68 del $(MODULE_BUILD_DIR)\makefile > NUL
69 del $(MODULE_BUILD_DIR)\*.idb > NUL
70 del $(MODULE_BUILD_DIR)\*.pdb > NUL
71 del $(BIN_DIR)\SecMain.exe > NUL
72 del $(BIN_DIR)\SecMain.pdb > NUL
73
74