aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc/c++filt/Makefile
blob: ef84835cb44647f77b8fb59bb8335149cf235d33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#	$Id: Makefile,v 1.8 1999/08/08 07:31:47 bde Exp $

.include "../Makefile.inc"

.PATH: ${GCCDIR}

PROG=	c++filt
SRCS=	cplus-dem.c getopt.c getopt1.c underscore.c
BINDIR=	/usr/libexec/${OBJFORMAT}
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>