aboutsummaryrefslogtreecommitdiff
path: root/scripts/allconfig/Makefile
blob: ffe320ebe12f9c6712d2baf24b467a109910f7a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
MAKEFLAGS += --no-builtin-rules
.PHONY: all clean
.SUFFIXES:

all: allconfig

KCONFIG_PREFIX = ../shared/kconfig
include $(KCONFIG_PREFIX)/files.mk

SRC  = allconfig.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