From ed6b185c40f21f59da11f16771c46457c40399b9 Mon Sep 17 00:00:00 2001 From: Lulu Cathrinus Grimalkin Date: Tue, 22 Jun 2021 21:08:48 +0300 Subject: T3644: build: replace GCC preprocessor with a Python script for template expansions --- Makefile | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f029225f2..84dbab401 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,6 @@ BUILD_DIR := build DATA_DIR := data SHIM_DIR := src/shim XDP_DIR := src/xdp -CC := gcc LIBS := -lzmq CFLAGS := @@ -15,18 +14,8 @@ op_xml_obj = $(op_xml_src:.xml.in=.xml) %.xml: %.xml.in @echo Generating $(BUILD_DIR)/$@ from $< - # -ansi This turns off certain features of GCC that are incompatible - # with ISO C90. Without this regexes containing '/' as in an URL - # won't work - # -x c By default GCC guesses the input language from its file extension, - # thus XML is unknown. Force it to C language - # -E Stop after the preprocessing stage - # -undef Do not predefine any system-specific or GCC-specific macros. - # -nostdinc Do not search the standard system directories for header files - # -P Inhibit generation of linemarkers in the output from the - # preprocessor mkdir -p $(BUILD_DIR)/$(dir $@) - @$(CC) -x c-header -C -E -undef -nostdinc -P -I$(CURDIR)/$(dir $<) -o $(BUILD_DIR)/$@ -c $< + $(CURDIR)/scripts/transclude-template $< > $(BUILD_DIR)/$@ .PHONY: interface_definitions .ONESHELL: -- cgit v1.2.3