]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/VfrCompile/Makefile
Sync EDKII BaseTools to BaseTools project r1913.
[mirror_edk2.git] / BaseTools / Source / C / VfrCompile / Makefile
CommitLineData
c69f724d 1## @file\r
2# Windows makefile for 'VfrCompile' module build.\r
3#\r
4# Copyright (c) 2008 - 2010, Intel Corporation<BR>\r
5# All rights reserved. This program and the accompanying materials\r
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
15CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD /D VFREXP_DEBUG\r
16APPNAME = VfrCompile\r
17\r
18LIBS = $(LIB_PATH)\Common.lib\r
19\r
20OBJECTS = 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
24INC = $(INC) -I $(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts\h\r
25\r
26!INCLUDE ..\Makefiles\ms.app\r
27\r
28VfrSyntax.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
33VfrLexer.cpp VfrLexer.h: VfrParser.dlg\r
34 dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg\r
35\r
36ATokenBuffer.obj: Pccts\h\ATokenBuffer.cpp\r
37 $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@\r
38\r
39DLexerBase.obj: Pccts\h\DLexerBase.cpp\r
40 $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@\r
41\r
42AParser.obj: Pccts\h\AParser.cpp\r
43 $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@\r
44\r
45EXTRA_CLEAN_OBJECTS = VfrParser.dlg EfiVfrParser.cpp EfiVfrParser.h \\r
46 VfrLexer.cpp VfrLexer.h \\r
47 VfrSyntax.cpp VfrTokens.h\r
48\r
49clean: localClean\r
50cleanall: localClean localCleanall\r
51\r
52localClean:\r
53 -DEL $(EXTRA_CLEAN_OBJECTS)\r
54\r
55localCleanall:\r
56 pushd . & cd Pccts & $(MAKE) cleanall & popd\r