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