]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/VfrCompile/GNUmakefile
Remove duplicate PCD declaration
[mirror_edk2.git] / BaseTools / Source / C / VfrCompile / GNUmakefile
1 ## @file
2 # Windows makefile for 'VfrCompile' module build.
3 #
4 # Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13
14 ARCH ?= IA32
15 MAKEROOT ?= ..
16
17 APPNAME = VfrCompile
18
19 LIBS = -lCommon
20
21 TOOL_INCLUDE = -I Pccts/h
22
23 #OBJECTS = VfrSyntax.o VfrServices.o DLGLexer.o EfiVfrParser.o ATokenBuffer.o DLexerBase.o AParser.o
24 OBJECTS = AParser.o DLexerBase.o ATokenBuffer.o EfiVfrParser.o VfrLexer.o VfrSyntax.o \
25 VfrFormPkg.o VfrError.o VfrUtilityLib.o VfrCompiler.o
26
27 VFR_CPPFLAGS = -DPCCTS_USE_NAMESPACE_STD $(CPPFLAGS)
28
29 LINKER = $(CXX)
30
31 EXTRA_CLEAN_OBJECTS = EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h VfrLexer.cpp VfrLexer.h VfrSyntax.cpp tokens.h
32
33 include $(MAKEROOT)/Makefiles/app.makefile
34
35 VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: Pccts/antlr/antlr VfrSyntax.g
36 Pccts/antlr/antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g
37
38 VfrLexer.cpp VfrLexer.h: Pccts/dlg/dlg VfrParser.dlg
39 Pccts/dlg/dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg
40
41 Pccts/antlr/antlr:
42 BIN_DIR='.' make -C Pccts/antlr
43
44 Pccts/dlg/dlg:
45 BIN_DIR='.' make -C Pccts/dlg
46
47 ATokenBuffer.o: Pccts/h/ATokenBuffer.cpp
48 $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@
49
50 DLexerBase.o: Pccts/h/DLexerBase.cpp
51 $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@
52
53 AParser.o: Pccts/h/AParser.cpp
54 $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@
55
56 VfrSyntax.o: VfrSyntax.cpp
57 $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@
58
59 clean: localClean
60
61 localClean:
62 BIN_DIR='.' make -C Pccts/antlr clean
63 BIN_DIR='.' make -C Pccts/dlg clean
64 rm -f $(EXTRA_CLEAN_OBJECTS)
65