]> git.saurik.com Git - apple/xnu.git/blame - SETUP/installfile/Makefile
xnu-3248.60.10.tar.gz
[apple/xnu.git] / SETUP / installfile / Makefile
CommitLineData
316670eb
A
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
316670eb
A
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
39236c6e 9OBJS = installfile.o
316670eb 10
39236c6e 11CFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) -g -O0 -I$(SOURCE) -I.
316670eb
A
12
13WARNFLAGS = -Wall
14
39236c6e 15LDFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION)
316670eb 16
39236c6e 17installfile: $(OBJS)
316670eb 18 @echo HOST_LD $@
39236c6e 19 $(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^
316670eb 20 @echo HOST_CODESIGN $@
39236c6e 21 $(_v)env CODESIGN_ALLOCATE=$(HOST_CODESIGN_ALLOCATE) $(HOST_CODESIGN) -s - $@
316670eb 22
39236c6e 23%.o: %.c
316670eb 24 @echo HOST_CC $@
39236c6e 25 $(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
316670eb 26
39236c6e 27do_build_setup:: installfile
316670eb
A
28
29include $(MakeInc_rule)
30include $(MakeInc_dir)