aboutsummaryrefslogtreecommitdiff
path: root/scripts/write_config/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-12 13:03:28 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-12 13:03:28 +0200
commit637cd1f56a0d6d6fcd73781941dce92dd67951cb (patch)
tree4fa1e7fb093817794f2a6e41fed1efa91320ca06 /scripts/write_config/Makefile
parent6eae861025e67c9d4363e4c5dff802b1fbda95e0 (diff)
downloadlinux-conf-perf-637cd1f56a0d6d6fcd73781941dce92dd67951cb.tar.gz
linux-conf-perf-637cd1f56a0d6d6fcd73781941dce92dd67951cb.tar.bz2
linux-conf-perf-637cd1f56a0d6d6fcd73781941dce92dd67951cb.zip
Add makefile for new application write_config
This makefile is copy of parse_kconfig makefile, only target name changed.
Diffstat (limited to 'scripts/write_config/Makefile')
-rw-r--r--scripts/write_config/Makefile23
1 files changed, 23 insertions, 0 deletions
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