diff options
Diffstat (limited to 'scripts/allconfig/Makefile')
-rw-r--r-- | scripts/allconfig/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/allconfig/Makefile b/scripts/allconfig/Makefile new file mode 100644 index 0000000..ffe320e --- /dev/null +++ b/scripts/allconfig/Makefile @@ -0,0 +1,23 @@ +MAKEFLAGS += --no-builtin-rules +.PHONY: all clean +.SUFFIXES: + +all: allconfig + +KCONFIG_PREFIX = ../shared/kconfig +include $(KCONFIG_PREFIX)/files.mk + +SRC = allconfig.c +OBJ = $(patsubst %.c,%.o,$(SRC)) +CFLAGS = -O0 -Wall -ggdb -DDEBUG +INCLUDES = -I../shared + +%.o: %.c + gcc -c $(CFLAGS) -o $@ $^ $(INCLUDES) + +allconfig: $(OBJ) $(KCONFIG_OBJ) + gcc -o $@ $^ + +clean:: + $(RM) $(OBJ) + $(RM) allconfig |