xref: /openbsd/gnu/usr.bin/cc/cc1/Makefile (revision caccadbf)
1*caccadbfSrobert# $FreeBSD: src/gnu/usr.bin/cc/cc1/Makefile,v 1.35.8.1 2009/04/15 03:14:26 kensmith Exp $
2*caccadbfSrobert# $OpenBSD: Makefile,v 1.1.1.1 2009/10/15 20:50:20 robert Exp $
3*caccadbfSrobert
4*caccadbfSrobert.include <bsd.own.mk>
5*caccadbfSrobert
6*caccadbfSrobert.include "${.CURDIR}/../Makefile.inc"
7*caccadbfSrobert.include "${.CURDIR}/../Makefile.ver"
8*caccadbfSrobert
9*caccadbfSrobert.PATH: ${GCCDIR}
10*caccadbfSrobert
11*caccadbfSrobertPROG=	cc1
12*caccadbfSrobertSRCS=	main.c c-parser.c c-lang.c
13*caccadbfSrobertBINDIR=	/usr/lib/gcc-lib/${GCC_TARGET}/${BASEVER}
14*caccadbfSrobertNOMAN= Yes
15*caccadbfSrobert
16*caccadbfSrobertOBJS+=  ${PROG}-checksum.o
17*caccadbfSrobertDPADD=	${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY}
18*caccadbfSrobertLDADD=	${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY}
19*caccadbfSrobert
20*caccadbfSrobertDOBJS+=	${SRCS:N*.h:R:S/$/.o/g}
21*caccadbfSrobert${PROG}-dummy:	${DOBJS}
22*caccadbfSrobert	${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${DOBJS} ${LDADD}
23*caccadbfSrobertCLEANFILES+=	${PROG}-dummy
24*caccadbfSrobert
25*caccadbfSrobert${PROG}-checksum.c:	${PROG}-dummy
26*caccadbfSrobert	../cc_tools/genchecksum ${PROG}-dummy > ${.TARGET}
27*caccadbfSrobertCLEANFILES+=	${PROG}-checksum.c
28*caccadbfSrobert
29*caccadbfSrobert.include <bsd.prog.mk>
30