1996-10-13 17:37:03 +00:00
|
|
|
#
|
1998-07-08 00:14:15 +00:00
|
|
|
# $Id: Makefile,v 1.3 1997/02/22 15:44:50 peter Exp $
|
1996-10-13 17:37:03 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
PROG = c++filt
|
1998-07-08 00:14:15 +00:00
|
|
|
SRCS = cplus-dem.c getopt.c getopt1.c underscore.c
|
1996-10-13 17:37:03 +00:00
|
|
|
BINDIR= /usr/bin
|
|
|
|
NOMAN= 1
|
|
|
|
CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\"
|
|
|
|
|
1998-07-08 00:14:15 +00:00
|
|
|
CLEANFILES= tmp-dum.c tmp-dum.s underscore.c
|
1996-10-13 17:37:03 +00:00
|
|
|
|
|
|
|
underscore.c:
|
|
|
|
echo "int xxy_us_dummy;" >tmp-dum.c
|
1998-07-08 00:14:15 +00:00
|
|
|
${CC} -S tmp-dum.c
|
1996-10-13 17:37:03 +00:00
|
|
|
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>
|