summaryrefslogtreecommitdiff
path: root/tools/kconf2h/Makefile
blob: b5a42c3db5f32ce5c1a326042f53003530e00c2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PROJECT=kconf2h
CC=gcc
CFLAGS=
SOURCES=$(PROJECT)_parser.c
OBJECTS=$(SOURCES:.c=.o)

all: clean ragel $(OBJECTS) $(PROJECT)

$(PROJECT):
	$(CC) $(CFLAGS) $(OBJECTS) $(PROJECT).c -o $(PROJECT)

ragel:
	ragel $(PROJECT)_parser.ragel

%.o: %.c
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f $(PROJECT)
	rm -f *.o