diff options
author | Lulu Cathrinus Grimalkin <e.altunbas@vyos.io> | 2021-06-22 21:08:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 20:08:48 +0200 |
commit | ed6b185c40f21f59da11f16771c46457c40399b9 (patch) | |
tree | 7bc8227dd390ba634b2349aa1f97b553da221ed5 /Makefile | |
parent | 91afeaca18e8faed3ee704d99b328ad3b143f465 (diff) | |
download | vyos-1x-ed6b185c40f21f59da11f16771c46457c40399b9.tar.gz vyos-1x-ed6b185c40f21f59da11f16771c46457c40399b9.zip |
T3644: build: replace GCC preprocessor with a Python script for template expansions
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -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: |