]>
Commit | Line | Data |
---|---|---|
316670eb 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 = decomment.o | |
11 | ||
12 | CFLAGS = -isysroot $(HOST_SDKROOT) -g -O0 -I$(SOURCE) -I. | |
13 | ||
14 | WARNFLAGS = -Wall | |
15 | ||
16 | LDFLAGS = -isysroot $(HOST_SDKROOT) | |
17 | ||
18 | decomment: $(OBJS) | |
19 | $(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^ | |
20 | @echo HOST_LD $@ | |
21 | $(_v)$(HOST_CODESIGN) -s - $@ | |
22 | @echo HOST_CODESIGN $@ | |
23 | ||
24 | .c.o: | |
25 | $(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $< | |
26 | @echo HOST_CC $@ | |
27 | ||
28 | do_build_setup: decomment | |
29 | ||
30 | include $(MakeInc_rule) | |
31 | include $(MakeInc_dir) |