From 2e39c070b3f1da75e4a86a0b9407e038a4cc5108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 12 Apr 2015 11:07:15 +0200 Subject: parse_kconfig make builds *.o files Until now *.o files were not created. --- scripts/parse_kconfig/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'scripts/parse_kconfig') diff --git a/scripts/parse_kconfig/Makefile b/scripts/parse_kconfig/Makefile index 8547617..c102a73 100644 --- a/scripts/parse_kconfig/Makefile +++ b/scripts/parse_kconfig/Makefile @@ -1,3 +1,4 @@ +MAKEFLAGS += --no-builtin-rules .PHONY: all clean .SUFFIXES: @@ -10,10 +11,16 @@ SRC = parser.c \ cnfexpr.c \ symlist.c \ output.c +OBJ = $(patsubst %.c,%.o,$(SRC)) CFLAGS = -O0 -w -ggdb +INCLUDES = -I../shared -parse: $(SRC) $(KCONFIG_SRC) - gcc $(CFLAGS) -o $@ $^ -I../shared +%.o: %.c + gcc -c $(CFLAGS) -o $@ $^ $(INCLUDES) + +parse: $(OBJ) $(KCONFIG_OBJ) + gcc -o $@ $^ clean:: + $(RM) $(OBJ) $(RM) parser -- cgit v1.2.3