diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2012-01-05 21:49:43 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2012-01-05 21:49:43 +0000 |
commit | 030b95d47914abb6e807519b28c62f4467b7198b (patch) | |
tree | 6d9ecba1c0fc4a97b83664c39c5b9e6a6edc7239 /share/mk/bsd.crunchgen.mk | |
parent | 8948622005ac38151290ab0a4857cedbe9ab9ee2 (diff) | |
download | src-030b95d47914abb6e807519b28c62f4467b7198b.tar.gz src-030b95d47914abb6e807519b28c62f4467b7198b.zip |
Allow crunchgen binary link generation to be disabled.
If CRUNCH_GENERATE_LINKS is set to "no", then no links will be
generated.
This defaults to "yes" so things like release crunch building
still works.
Notes
Notes:
svn path=/head/; revision=229658
Diffstat (limited to 'share/mk/bsd.crunchgen.mk')
-rw-r--r-- | share/mk/bsd.crunchgen.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/share/mk/bsd.crunchgen.mk b/share/mk/bsd.crunchgen.mk index 5ebfd94f97db..540c6d21dc6b 100644 --- a/share/mk/bsd.crunchgen.mk +++ b/share/mk/bsd.crunchgen.mk @@ -22,6 +22,8 @@ # Specific links can be suppressed by setting # CRUNCH_SUPPRESS_LINK_$(NAME) to 1. # +# If CRUNCH_GENERATE_LINKS is set to no, no links will be generated. +# # $FreeBSD$ @@ -39,6 +41,7 @@ CANONICALOBJDIR:= ${MAKEOBJDIRPREFIX}${.CURDIR} .else CANONICALOBJDIR:= /usr/obj${.CURDIR} .endif +CRUNCH_GENERATE_LINKS?= yes CLEANFILES+= $(CONF) *.o *.lo *.c *.mk *.cache *.a *.h @@ -51,6 +54,7 @@ $(OUTPUTS): $(CRUNCH_SRCDIR_${P})/Makefile .else $(OUTPUTS): $(.CURDIR)/../../$(D)/$(P)/Makefile .endif +.if ${CRUNCH_GENERATE_LINKS} == "yes" .ifndef CRUNCH_SUPPRESS_LINK_${P} LINKS+= $(BINDIR)/$(PROG) $(BINDIR)/$(P) .endif @@ -59,6 +63,7 @@ LINKS+= $(BINDIR)/$(PROG) $(BINDIR)/$(P) LINKS+= $(BINDIR)/$(PROG) $(BINDIR)/$(A) .endif .endfor +.endif .endfor .endfor |