kernel - Fix SMP race in procfs
[dragonfly.git] / libexec / customcc / Makefile
1 SCRIPTS=        ${.OBJDIR}/cc
2 SCRIPTSDIR=     /usr/libexec/custom
3 SYMLINKS=       cc ${SCRIPTSDIR}/cpp \
4                 cc ${SCRIPTSDIR}/c++ \
5                 cc ${SCRIPTSDIR}/gcc \
6                 cc ${SCRIPTSDIR}/g++ \
7                 cc ${SCRIPTSDIR}/clang-cpp \
8                 cc ${SCRIPTSDIR}/clang++ \
9                 cc ${SCRIPTSDIR}/clang \
10                 cc ${SCRIPTSDIR}/gcov \
11                 cc ${SCRIPTSDIR}/CC
12 CLEANFILES=     cc
13 NOMAN=
14
15 DFLYVERSION!=   awk '/^\#define[[:blank:]]__DragonFly_version/ {print $$3}' < ${.CURDIR}/../../sys/sys/param.h
16 MACHREL!=       echo ${DFLYVERSION} | awk '{a=int($$1/100000); b=int(($$1-(a*100000))/100); print a "." b}'
17
18 ${.OBJDIR}/cc: cc.sh
19         sed -e "s#@@INCPREFIX@@#${USRDATA_PREFIX:S;^$;/;}#g" \
20                 -e "s|@@MACHARCH@@|${MACHINE_ARCH}|g" \
21                 -e "s|@@MACHREL@@|${MACHREL}|g" \
22                 $> > $@
23
24 .include <bsd.prog.mk>