]>
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 | ||
39236c6e | 13 | CFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) -g -O0 -I$(SOURCE) -I. |
6d2010ae A |
14 | |
15 | WARNFLAGS = -Wall | |
16 | ||
39236c6e | 17 | LDFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) |
6d2010ae A |
18 | |
19 | config: $(OBJS) | |
6d2010ae | 20 | @echo HOST_LD $@ |
39236c6e | 21 | $(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^ |
6d2010ae | 22 | @echo HOST_CODESIGN $@ |
39236c6e | 23 | $(_v)env CODESIGN_ALLOCATE=$(HOST_CODESIGN_ALLOCATE) $(HOST_CODESIGN) -s - $@ |
6d2010ae | 24 | |
39236c6e | 25 | %.o: %.c |
6d2010ae | 26 | @echo HOST_CC $@ |
39236c6e | 27 | $(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $< |
6d2010ae A |
28 | |
29 | parser.c: parser.y | |
6d2010ae | 30 | @echo HOST_BISON $@ |
39236c6e | 31 | $(_v)$(HOST_BISON) -y -d -d -o $@ $< |
6d2010ae A |
32 | |
33 | lexer.yy.c: lexer.l | |
6d2010ae | 34 | @echo HOST_FLEX $@ |
39236c6e | 35 | $(_v)env M4=$(HOST_GM4) $(HOST_FLEX) --header-file=lexer.yy.h -o $@ $< |
6d2010ae A |
36 | |
37 | main.o mkglue.o mkheaders.o mkioconf.o mkmakefile.o lexer.yy.c: parser.c | |
38 | ||
39236c6e | 39 | do_build_setup:: config |
6d2010ae A |
40 | |
41 | include $(MakeInc_rule) | |
42 | include $(MakeInc_dir) |