]>
Commit | Line | Data |
---|---|---|
c69f724d | 1 | ## @file\r |
2 | # Windows makefile for 'VfrCompile' module build.\r | |
3 | #\r | |
40d841f6 LG |
4 | # Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>\r |
5 | # This program and the accompanying materials\r | |
c69f724d | 6 | # are licensed and made available under the terms and conditions of the BSD License\r |
7 | # which accompanies this distribution. The full text of the license may be found at\r | |
8 | # http://opensource.org/licenses/bsd-license.php\r | |
9 | #\r | |
10 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | #\r | |
13 | !INCLUDE ..\Makefiles\ms.common\r | |
14 | \r | |
64137027 | 15 | CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD\r |
c69f724d | 16 | APPNAME = VfrCompile\r |
17 | \r | |
18 | LIBS = $(LIB_PATH)\Common.lib\r | |
19 | \r | |
20 | OBJECTS = AParser.obj DLexerBase.obj ATokenBuffer.obj \\r | |
21 | EfiVfrParser.obj VfrLexer.obj VfrSyntax.obj \\r | |
22 | VfrFormPkg.obj VfrError.obj VfrUtilityLib.obj VfrCompiler.obj\r | |
23 | \r | |
24 | INC = $(INC) -I $(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts\h\r | |
25 | \r | |
26 | !INCLUDE ..\Makefiles\ms.app\r | |
27 | \r | |
28 | VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: VfrSyntax.g\r | |
29 | pushd . & cd Pccts & $(MAKE) & popd\r | |
30 | antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g\r | |
31 | # pushd . & cd Pccts & $(MAKE) clean\r | |
32 | \r | |
33 | VfrLexer.cpp VfrLexer.h: VfrParser.dlg\r | |
34 | dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg\r | |
35 | \r | |
36 | ATokenBuffer.obj: Pccts\h\ATokenBuffer.cpp\r | |
37 | $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@\r | |
38 | \r | |
39 | DLexerBase.obj: Pccts\h\DLexerBase.cpp\r | |
40 | $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@\r | |
41 | \r | |
42 | AParser.obj: Pccts\h\AParser.cpp\r | |
43 | $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@\r | |
44 | \r | |
45 | EXTRA_CLEAN_OBJECTS = VfrParser.dlg EfiVfrParser.cpp EfiVfrParser.h \\r | |
46 | VfrLexer.cpp VfrLexer.h \\r | |
47 | VfrSyntax.cpp VfrTokens.h\r | |
48 | \r | |
49 | clean: localClean\r | |
50 | cleanall: localClean localCleanall\r | |
51 | \r | |
52 | localClean:\r | |
53 | -DEL $(EXTRA_CLEAN_OBJECTS)\r | |
54 | \r | |
55 | localCleanall:\r | |
56 | pushd . & cd Pccts & $(MAKE) cleanall & popd\r |