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

all: write

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

SRC  = write.c \
	   symlist.c \
	   solution.c
OBJ = $(patsubst %.c,%.o,$(SRC))
CFLAGS = -O0 -w -ggdb
INCLUDES = -I../shared

%.o: %.c
	gcc -c $(CFLAGS) -o $@ $^ $(INCLUDES)

write: $(OBJ) $(KCONFIG_OBJ)
	gcc -o $@ $^

clean::
	$(RM) $(OBJ)
	$(RM) write