Makefile revision 139112
1119381Sjake# $FreeBSD: head/gnu/usr.bin/cc/cc1/Makefile 139112 2004-12-21 09:59:45Z ru $ 2119381Sjake 3167308Smarius.include "../Makefile.inc" 4119381Sjake 5119381Sjake.PATH: ${GCCDIR} 6119381Sjake 7119381SjakePROG= cc1 8119381SjakeSRCS= main.c c-parse+%DIKED.c c-lang.c stub-objc.c 9119381SjakeBINDIR= /usr/libexec 10119381SjakeNO_MAN= 11119381SjakeNO_SHARED?=yes 12119381Sjake 13119381SjakeCFLAGS+= -I. 14119381Sjake 15119381SjakeDPADD= ${LIBCC_INT} 16119381SjakeLDADD= ${LIBCC_INT} 17119381Sjake 18119381Sjake#----------------------------------------------------------------------- 19119381Sjake# C parser 20119381Sjakec-parse+%DIKED.c: c-parse.c 21119381Sjake sed -e "s/malloc/xmalloc/g" \ 22119381Sjake -e "s/realloc/xrealloc/g" \ 23119381Sjake ${.ALLSRC} > ${.TARGET} 24119381Sjake 25119381Sjakec-parse.y: c-parse.in 26119381Sjake sed -e "/^@@ifobjc.*/,/^@@end_ifobjc.*/d" \ 27119381Sjake -e "/^@@ifc.*/d" -e "/^@@end_ifc.*/d" \ 28146480Smarius ${.ALLSRC} > ${.TARGET} 29146480Smarius 30146480SmariusCLEANFILES= c-parse+%DIKED.c c-parse.c c-parse.y 31119381SjakeCLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive 32119381Sjake 33119381Sjake.include <bsd.prog.mk> 34166059Smarius