File: Makefile

package info (click to toggle)
edk2 2022.11-6%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 165,180 kB
  • sloc: ansic: 1,628,399; perl: 160,190; python: 135,478; asm: 49,448; cpp: 17,566; sh: 3,078; makefile: 2,986; pascal: 472; xml: 318; lisp: 35; sed: 5
file content (50 lines) | stat: -rw-r--r-- 1,536 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
## @file
# Windows makefile for 'VfrCompile' module build.
#
# Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
!INCLUDE ..\Makefiles\ms.common

CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD
APPNAME = VfrCompile

LIBS = $(LIB_PATH)\Common.lib

OBJECTS = AParser.obj DLexerBase.obj ATokenBuffer.obj \
          EfiVfrParser.obj VfrLexer.obj VfrSyntax.obj \
          VfrFormPkg.obj VfrError.obj VfrUtilityLib.obj VfrCompiler.obj

INC = $(INC) -I $(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts\h

!INCLUDE ..\Makefiles\ms.app

VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: VfrSyntax.g
	pushd . & cd Pccts & $(MAKE) & popd
	antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g
#	pushd . & cd Pccts & $(MAKE) clean

VfrLexer.cpp VfrLexer.h: VfrParser.dlg
	dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg

ATokenBuffer.obj: Pccts\h\ATokenBuffer.cpp
	$(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@

DLexerBase.obj: Pccts\h\DLexerBase.cpp
	$(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@

AParser.obj: Pccts\h\AParser.cpp
	$(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@

EXTRA_CLEAN_OBJECTS = VfrParser.dlg EfiVfrParser.cpp EfiVfrParser.h \
                      VfrLexer.cpp VfrLexer.h \
                      VfrSyntax.cpp VfrTokens.h

clean: localClean
cleanall: localClean localCleanall

localClean:
	-DEL $(EXTRA_CLEAN_OBJECTS)

localCleanall:
	pushd . & cd Pccts & $(MAKE) cleanall & popd