export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
-
include $(MakeInc_cmd)
include $(MakeInc_def)
OBJS = setsegname.o
-CFLAGS = -isysroot $(HOST_SDKROOT) -g -O0 -I$(SOURCE) -I.
+CFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) -g -O0 -I$(SOURCE) -I.
WARNFLAGS = -Wall
-LDFLAGS = -isysroot $(HOST_SDKROOT)
+LDFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION)
setsegname: $(OBJS)
+ @echo "$(ColorH)HOST_LD$(Color0) $(ColorF)$@$(Color0)"
$(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^
- @echo HOST_LD $@
- $(_v)$(HOST_CODESIGN) -s - $@
- @echo HOST_CODESIGN $@
+ @echo "$(ColorH)HOST_CODESIGN$(Color0) $(ColorF)$@$(Color0)"
+ $(_v)env CODESIGN_ALLOCATE=$(HOST_CODESIGN_ALLOCATE) $(HOST_CODESIGN) -s - $@
-.c.o:
+%.o: %.c
+ @echo "$(ColorH)HOST_CC$(Color0) $(ColorF)$@$(Color0)"
$(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
- @echo HOST_CC $@
-do_build_setup: setsegname
+do_build_setup:: setsegname
include $(MakeInc_rule)
include $(MakeInc_dir)