BaseTools VfrCompile Pccts: Update GCC Flags to the specific one with BUILD_ prefix
This change is also applied to VfrCompile Pccts antlr and dlg tool. In V2, add the missing C rules. Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
@@ -114,18 +114,19 @@ PCCTS_H=../h
|
||||
#
|
||||
# UNIX
|
||||
#
|
||||
CC?=cc
|
||||
BUILD_CC?=cc
|
||||
COPT=-O
|
||||
ANTLR=${BIN_DIR}/antlr
|
||||
DLG=${BIN_DIR}/dlg
|
||||
CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DZZLEXBUFSIZE=65536
|
||||
BUILD_CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DZZLEXBUFSIZE=65536
|
||||
BUILD_CPPFLAGS=
|
||||
OBJ_EXT=o
|
||||
OUT_OBJ = -o
|
||||
OBJ = dlg_p.o dlg_a.o main.o err.o set.o support.o output.o \
|
||||
relabel.o automata.o
|
||||
|
||||
$(BIN_DIR)/dlg : $(OBJ) $(SRC)
|
||||
$(CC) $(CFLAGS) -o $(BIN_DIR)/dlg $(OBJ)
|
||||
$(BUILD_CC) $(BUILD_CFLAGS) -o $(BIN_DIR)/dlg $(OBJ)
|
||||
|
||||
SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c support.c output.c \
|
||||
relabel.c automata.c
|
||||
@@ -137,16 +138,19 @@ SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c support.c output.c \
|
||||
# $(DLG) -C2 parser.dlg dlg_a.c
|
||||
|
||||
dlg_p.$(OBJ_EXT) : dlg_p.c dlg.h tokens.h mode.h
|
||||
$(CC) $(CFLAGS) -c dlg_p.c
|
||||
$(BUILD_CC) $(BUILD_CFLAGS) -c dlg_p.c
|
||||
|
||||
dlg_a.$(OBJ_EXT) : dlg_a.c dlg.h tokens.h mode.h
|
||||
$(CC) $(CFLAGS) -c dlg_a.c
|
||||
$(BUILD_CC) $(BUILD_CFLAGS) -c dlg_a.c
|
||||
|
||||
main.$(OBJ_EXT) : main.c dlg.h
|
||||
$(CC) $(CFLAGS) -c main.c
|
||||
$(BUILD_CC) $(BUILD_CFLAGS) -c main.c
|
||||
|
||||
set.$(OBJ_EXT) : $(SET)/set.c
|
||||
$(CC) -c $(CFLAGS) $(SET)/set.c
|
||||
$(BUILD_CC) -c $(BUILD_CFLAGS) $(SET)/set.c
|
||||
|
||||
%.o : %.c
|
||||
$(BUILD_CC) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@
|
||||
|
||||
lint:
|
||||
lint *.c
|
||||
|
Reference in New Issue
Block a user