xref: /csrg-svn/old/cpp/Makefile (revision 37052)
17984Srrh#
231424Sbostic# Copyright (c) 1987 Regents of the University of California.
331424Sbostic# All rights reserved.  The Berkeley software License Agreement
431424Sbostic# specifies the terms and conditions for redistribution.
531424Sbostic#
6*37052Sbostic#	@(#)Makefile	1.6	(Berkeley)	03/06/89
731424Sbostic#
829877SsamCFLAGS=	-O -Dunix=1 -DFLEXNAMES
931424SbosticLIBC=	/lib/libc.a
1031424SbosticYYFIX=	../pcc/pcc.${MACHINE}/:yyfix
1131424SbosticSRCS=	cpp.c cpy.c rodata.c
1231424SbosticOBJS=	cpp.o cpy.o rodata.o
137984Srrh
1431424Sbosticall: cpp
157984Srrh
1631424Sbosticcpp:	${OBJS} ${LIBC}
1731424Sbostic	${CC} -o $@ ${CFLAGS} ${OBJS}
1831424Sbostic
1931424Sbosticcpy.c: cpy.y
207984Srrh	yacc cpy.y
2129877Ssam	${YYFIX} yyexca yyact yypact yypgo yyr1 yyr2 yychk yydef
227984Srrh	mv y.tab.c cpy.c
237984Srrh
2431424Sbosticcpy.o: cpy.c yylex.c
257984Srrh
2631424Sbosticrodata.o: cpy.c
2731424Sbostic	${CC} ${CFLAGS} -R -c rodata.c
287984Srrh
29*37052Sbosticclean:
3031424Sbostic	rm -f ${OBJS} cpp core cpy.c rodata.c
3131234Sbostic
32*37052Sbosticcleandir: clean
33*37052Sbostic	rm -f ${MAN} tags .depend
34*37052Sbostic
35*37052Sbosticdepend: ${SRCS}
3631424Sbostic	mkdep ${CFLAGS} ${SRCS}
3731424Sbostic
38*37052Sbosticinstall: ${MAN}
3931424Sbostic	install -s -o bin -g bin -m 755 cpp ${DESTDIR}/lib/cpp
4031424Sbostic
41*37052Sbosticlint: ${SRCS}
4231424Sbostic	lint ${CFLAGS} ${SRCS}
4331424Sbostic
44*37052Sbostictags: ${SRCS}
4531424Sbostic	ctags ${SRCS}
46