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