]> git.saurik.com Git - apple/xnu.git/blame_incremental - SETUP/setsegname/Makefile
xnu-2422.1.72.tar.gz
[apple/xnu.git] / SETUP / setsegname / Makefile
... / ...
CommitLineData
1export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6
7include $(MakeInc_cmd)
8include $(MakeInc_def)
9
10OBJS = setsegname.o
11
12CFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) -g -O0 -I$(SOURCE) -I.
13
14WARNFLAGS = -Wall
15
16LDFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION)
17
18setsegname: $(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
28do_build_setup:: setsegname
29
30include $(MakeInc_rule)
31include $(MakeInc_dir)