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