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