From 637cd1f56a0d6d6fcd73781941dce92dd67951cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 12 Apr 2015 13:03:28 +0200 Subject: Add makefile for new application write_config This makefile is copy of parse_kconfig makefile, only target name changed. --- scripts/write_config/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scripts/write_config/Makefile (limited to 'scripts/write_config') diff --git a/scripts/write_config/Makefile b/scripts/write_config/Makefile new file mode 100644 index 0000000..9bb6246 --- /dev/null +++ b/scripts/write_config/Makefile @@ -0,0 +1,23 @@ +MAKEFLAGS += --no-builtin-rules +.PHONY: all clean +.SUFFIXES: + +all: write + +KCONFIG_PREFIX = ../shared/kconfig +include $(KCONFIG_PREFIX)/files.mk + +SRC = write.c +OBJ = $(patsubst %.c,%.o,$(SRC)) +CFLAGS = -O0 -w -ggdb +INCLUDES = -I../shared + +%.o: %.c + gcc -c $(CFLAGS) -o $@ $^ $(INCLUDES) + +write: $(OBJ) $(KCONFIG_OBJ) + gcc -o $@ $^ + +clean:: + $(RM) $(OBJ) + $(RM) write -- cgit v1.2.3