Merge branch 'errc'
[unleashed.git] / bin / Makefile.inc
blob9694d60137c5dfe5122b813dcb4ee372098d9580
1 BINDIR?=        /usr/bin
3 .if defined(PROG)
4 MAPFILES=       ${.CURDIR:H:H}/usr/src/common/mapfiles/common
5 _PROGLDOPTS=    -Wl,-Bdirect
6 _PROGLDOPTS+=   -Wl,-M${MAPFILES}/map.noexstk
7 _PROGLDOPTS+=   -Wl,-M${MAPFILES}/map.pagealign
8 .if ${MACHINE_ARCH} != "sparc"
9 _PROGLDOPTS+=   -Wl,-M${MAPFILES}/map.noexdata
10 .endif
11 BUILDVERSION!=  git describe --long --all HEAD | cut -d/ -f2-
12 .if !target(beforeinstall)
13 beforeinstall:
14         mcs -d -a 'illumos-unleashed ${BUILDVERSION}' ${PROG}
15 .endif
16 .endif