X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..3903760236c30e3b5ace7a4eefac3a269d68957c:/SETUP/setsegname/Makefile diff --git a/SETUP/setsegname/Makefile b/SETUP/setsegname/Makefile index 70e5e2641..7e9224ef0 100644 --- a/SETUP/setsegname/Makefile +++ b/SETUP/setsegname/Makefile @@ -3,29 +3,28 @@ export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def 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)