bsd.crunchgen.mk (237574) | bsd.crunchgen.mk (241298) |
---|---|
1################################################################# 2# 3# General notes: 4# 5# A number of Make variables are used to generate the crunchgen config file. 6# 7# CRUNCH_SRCDIRS: lists directories to search for included programs 8# CRUNCH_PROGS: lists programs to be included --- 11 unchanged lines hidden (view full) --- 20# By default, any name appearing in CRUNCH_PROGS or CRUNCH_ALIAS_${P} 21# will be used to generate a hard link to the resulting binary. 22# Specific links can be suppressed by setting 23# CRUNCH_SUPPRESS_LINK_$(NAME) to 1. 24# 25# If CRUNCH_GENERATE_LINKS is set to no, no links will be generated. 26# 27 | 1################################################################# 2# 3# General notes: 4# 5# A number of Make variables are used to generate the crunchgen config file. 6# 7# CRUNCH_SRCDIRS: lists directories to search for included programs 8# CRUNCH_PROGS: lists programs to be included --- 11 unchanged lines hidden (view full) --- 20# By default, any name appearing in CRUNCH_PROGS or CRUNCH_ALIAS_${P} 21# will be used to generate a hard link to the resulting binary. 22# Specific links can be suppressed by setting 23# CRUNCH_SUPPRESS_LINK_$(NAME) to 1. 24# 25# If CRUNCH_GENERATE_LINKS is set to no, no links will be generated. 26# 27 |
28# $FreeBSD: head/share/mk/bsd.crunchgen.mk 237574 2012-06-25 21:56:36Z obrien $ | 28# $FreeBSD: head/share/mk/bsd.crunchgen.mk 241298 2012-10-06 20:01:05Z marcel $ |
29 30################################################################## 31# The following is pretty nearly a generic crunchgen-handling makefile 32# 33 34CONF= $(PROG).conf 35OUTMK= $(PROG).mk 36OUTC= $(PROG).c 37OUTPUTS=$(OUTMK) $(OUTC) $(PROG).cache 38CRUNCHOBJS= ${.OBJDIR} 39.if defined(MAKEOBJDIRPREFIX) 40CANONICALOBJDIR:= ${MAKEOBJDIRPREFIX}${.CURDIR} | 29 30################################################################## 31# The following is pretty nearly a generic crunchgen-handling makefile 32# 33 34CONF= $(PROG).conf 35OUTMK= $(PROG).mk 36OUTC= $(PROG).c 37OUTPUTS=$(OUTMK) $(OUTC) $(PROG).cache 38CRUNCHOBJS= ${.OBJDIR} 39.if defined(MAKEOBJDIRPREFIX) 40CANONICALOBJDIR:= ${MAKEOBJDIRPREFIX}${.CURDIR} |
41.elif defined(MAKEOBJDIR) && ${MAKEOBJDIR:M/*} != "" 42CANONICALOBJDIR:=${MAKEOBJDIR} |
|
41.else 42CANONICALOBJDIR:= /usr/obj${.CURDIR} 43.endif 44CRUNCH_GENERATE_LINKS?= yes 45 46CLEANFILES+= $(CONF) *.o *.lo *.c *.mk *.cache *.a *.h 47 48# Program names and their aliases contribute hardlinks to 'rescue' executable, --- 114 unchanged lines hidden --- | 43.else 44CANONICALOBJDIR:= /usr/obj${.CURDIR} 45.endif 46CRUNCH_GENERATE_LINKS?= yes 47 48CLEANFILES+= $(CONF) *.o *.lo *.c *.mk *.cache *.a *.h 49 50# Program names and their aliases contribute hardlinks to 'rescue' executable, --- 114 unchanged lines hidden --- |