MAKEFLAGS += --no-builtin-rules .PHONY: all clean .SUFFIXES: all: allconfig KCONFIG_PREFIX = ../shared/kconfig include $(KCONFIG_PREFIX)/files.mk SRC = allconfig.c \ inv.c OBJ = $(patsubst %.c,%.o,$(SRC)) CFLAGS = -O0 -Wall -ggdb -DDEBUG INCLUDES = -I../shared %.o: %.c gcc -c $(CFLAGS) -o $@ $^ $(INCLUDES) allconfig: $(OBJ) $(KCONFIG_OBJ) gcc -o $@ $^ clean:: $(RM) $(OBJ) $(RM) allconfig