carl9170 firmware: import 1.7.0
[carl9170fw.git] / config / Makefile
1 # ===========================================================================
2 # carl9170 configuration targets
3 # These targets are used from top-level makefile
4
5 PHONY += config
6
7 config: conf
8
9 # ===========================================================================
10 # Shared Makefile for the various kconfig executables:
11
12 clean:
13         @rm -f *.o zconf.tab.c lex.zconf.c zconf.hash.c lex.backup conf
14
15 # generated files seem to need this to find local include files
16
17 zconf.tab.o: lex.zconf.c zconf.hash.c
18
19 zconf.tab.c: zconf.y
20 lex.zconf.c: zconf.l
21 zconf.hash.c: zconf.gperf
22
23 %.tab.c: %.y
24         bison -l -b $* -p $(notdir $*) $<
25
26 lex.%.c: %.l
27         flex -L -P$(notdir $*) -o$@ $<
28
29 %.hash.c: %.gperf
30         gperf < $< > $@
31
32 %.o: %.c
33         gcc $(CFLAGS) -I./ -c $< -o $@
34
35 conf: zconf.tab.o conf.o