7130910537e8a2c65281ddfdf7dce24fedb0a217
[dragonfly.git] / initrd / Makefile.inc
1 NOMAN=
2 NOSHARED=
3 WARNS?=         6
4
5 # Define RESCUE for make and compiler
6 CRUNCH_BUILDOPTS+= -DRESCUE
7 CRUNCH_CFLAGS+= -DRESCUE
8
9 .if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/"
10 CRUNCH_CFLAGS+= --sysroot=${DESTDIR}
11 CRUNCHENV+= PATH=${DESTDIR}/sbin:${DESTDIR}/bin:${DESTDIR}/usr/sbin:${DESTDIR}/usr/bin
12 _SHLIBDIRPREFIX= ${DESTDIR}
13 .endif
14
15 # Apply the same flags to link the crunched binary because crunchgen(1) does
16 # not recognize ${CRUNCH_CFLAGS}.
17 CRUNCH_LINKOPTS+= ${CRUNCH_CFLAGS}
18
19 # Use soft links to create the crunched program links
20 #CRUNCH_USE_SYMLINKS=