diff options
Diffstat (limited to 'scripts/setpermute/Makefile')
-rw-r--r-- | scripts/setpermute/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/setpermute/Makefile b/scripts/setpermute/Makefile new file mode 100644 index 0000000..734a12e --- /dev/null +++ b/scripts/setpermute/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 = setpermute.c +OBJ = $(patsubst %.c,%.o,$(SRC)) +CFLAGS = -O0 -Wall -ggdb -DDEBUG +INCLUDES = -I../shared + +%.o: %.c + gcc -c $(CFLAGS) -o $@ $^ $(INCLUDES) + +setpermute: $(OBJ) $(KCONFIG_OBJ) + gcc -o $@ $^ + +clean:: + $(RM) $(OBJ) + $(RM) setpermute |