]>
Commit | Line | Data |
---|---|---|
6d2010ae A |
1 | export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd |
2 | export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def | |
3 | export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule | |
4 | export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir | |
5 | ||
6 | ||
7 | include $(MakeInc_cmd) | |
8 | include $(MakeInc_def) | |
9 | ||
10 | OBJS = externs.o main.o mkglue.o mkheaders.o mkioconf.o mkmakefile.o \ | |
11 | mkswapconf.o openp.o searchp.o lexer.yy.o parser.o | |
12 | ||
13 | CFLAGS = -isysroot $(HOST_SDKROOT) -g -O0 -I$(SOURCE) -I. | |
14 | ||
15 | WARNFLAGS = -Wall | |
16 | ||
17 | LDFLAGS = -isysroot $(HOST_SDKROOT) | |
18 | ||
19 | config: $(OBJS) | |
20 | $(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^ | |
21 | @echo HOST_LD $@ | |
22 | $(_v)$(HOST_CODESIGN) -s - $@ | |
23 | @echo HOST_CODESIGN $@ | |
24 | ||
25 | .c.o: | |
26 | $(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $< | |
27 | @echo HOST_CC $@ | |
28 | ||
29 | parser.c: parser.y | |
30 | $(_v)$(HOST_BISON) -y -d -d -o $@ $< | |
31 | @echo HOST_BISON $@ | |
32 | ||
33 | lexer.yy.c: lexer.l | |
34 | $(_v)$(HOST_FLEX) --header-file=lexer.yy.h -o $@ $< | |
35 | @echo HOST_FLEX $@ | |
36 | ||
37 | main.o mkglue.o mkheaders.o mkioconf.o mkmakefile.o lexer.yy.c: parser.c | |
38 | ||
39 | do_build_setup: config | |
40 | ||
41 | include $(MakeInc_rule) | |
42 | include $(MakeInc_dir) |