blob: a6d0ee781946c08af1bc7781d519fe023e7717b5 (
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
26
27
28
|
MAKEFLAGS += --no-builtin-rules
.PHONY: all clean
.SUFFIXES:
all: parse
KCONFIG_PREFIX = ../shared/kconfig
include $(KCONFIG_PREFIX)/files.mk
SRC = parse.c \
boolexpr.c \
cnfbuild.c \
symlist.c \
doutput.c \
output.c
OBJ = $(patsubst %.c,%.o,$(SRC))
CFLAGS = -O0 -w -ggdb -DDEBUG
INCLUDES = -I../shared
%.o: %.c
gcc -c $(CFLAGS) -o $@ $^ $(INCLUDES)
parse: $(OBJ) $(KCONFIG_OBJ)
gcc -o $@ $^
clean::
$(RM) $(OBJ)
$(RM) parse
|