freebsd-dev/gnu/usr.bin/cc/c++filt/Makefile
Bruce Evans 0cc5719c0a Use the installed versions of cc, cc1 and cpp for building underscore.
They have been bootstrapped by `make world' since long before the
hacks here were cloned from ../libgcc/Makefile.  The versions just
built in "../*" normally won't work if the target system is not binary
compatible.

Don't use OBJS to defeat `make depend'; just put generated sources in
SRCS.

Added temporary files to CLEANFILES.
1998-07-08 00:14:15 +00:00

25 lines
623 B
Makefile

#
# $Id: Makefile,v 1.3 1997/02/22 15:44:50 peter Exp $
#
PROG = c++filt
SRCS = cplus-dem.c getopt.c getopt1.c underscore.c
BINDIR= /usr/bin
NOMAN= 1
CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\"
CLEANFILES= tmp-dum.c tmp-dum.s underscore.c
underscore.c:
echo "int xxy_us_dummy;" >tmp-dum.c
${CC} -S tmp-dum.c
echo '/*WARNING: This file is automatically generated!*/' >underscore.c
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
echo "int prepends_underscore = 1;" >>underscore.c; \
else \
echo "int prepends_underscore = 0;" >>underscore.c; \
fi
rm -f tmp-dum.c tmp-dum.s
.include <bsd.prog.mk>