xref: /xnu-11215/SETUP/replacecontents/Makefile (revision bb611c8f)
1a3bb9fccSApple OSS Distributionsexport MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2a3bb9fccSApple OSS Distributionsexport MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3a3bb9fccSApple OSS Distributionsexport MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4a3bb9fccSApple OSS Distributionsexport MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5a3bb9fccSApple OSS Distributions
6a3bb9fccSApple OSS Distributionsinclude $(MakeInc_cmd)
7a3bb9fccSApple OSS Distributionsinclude $(MakeInc_def)
8a3bb9fccSApple OSS Distributions
9a3bb9fccSApple OSS DistributionsOBJS = replacecontents.o
10a3bb9fccSApple OSS Distributions
11a3bb9fccSApple OSS DistributionsCFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) -g -O0 -I$(SOURCE) -I.
12a3bb9fccSApple OSS Distributions
13a3bb9fccSApple OSS DistributionsWARNFLAGS = -Wall
14a3bb9fccSApple OSS Distributions
15a3bb9fccSApple OSS DistributionsLDFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION)
16a3bb9fccSApple OSS Distributions
17a3bb9fccSApple OSS Distributionsreplacecontents: $(OBJS)
18*bb611c8fSApple OSS Distributions	@$(LOG_HOST_LD) "$@"
19a3bb9fccSApple OSS Distributions	$(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^
20*bb611c8fSApple OSS Distributions	@$(LOG_HOST_CODESIGN) "$@"
21a3bb9fccSApple OSS Distributions	$(_v)env CODESIGN_ALLOCATE=$(HOST_CODESIGN_ALLOCATE) $(HOST_CODESIGN) -s - $@
22a3bb9fccSApple OSS Distributions
23a3bb9fccSApple OSS Distributions%.o: %.c
24*bb611c8fSApple OSS Distributions	@$(LOG_HOST_CC) "$@"
25a3bb9fccSApple OSS Distributions	$(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
26a3bb9fccSApple OSS Distributions
27a3bb9fccSApple OSS Distributionsdo_build_setup:: replacecontents
28a3bb9fccSApple OSS Distributions
29a3bb9fccSApple OSS Distributionsinclude $(MakeInc_rule)
30a3bb9fccSApple OSS Distributionsinclude $(MakeInc_dir)
31