Make sure gcc_local.c and any left over patch mess is cleaned up by make clean,
[dragonfly.git] / gnu / usr.bin / cc3 / f77 / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cc/f77/Makefile,v 1.21 2004/01/05 20:23:16 kan Exp $
2 # $DragonFly: src/gnu/usr.bin/cc3/f77/Attic/Makefile,v 1.7 2004/06/16 01:14:10 dillon Exp $
3
4 .include "../Makefile.inc"
5 .include "../Makefile.fe"
6
7 CFLAGS+=        -I${.CURDIR}/../config
8
9 .PATH: ${GCCDIR}/gcc/f ${GCCDIR}/gcc ${GCCDIR}/libiberty
10
11 PROG=   f77
12 SRCS=   gcc_local.c g77spec.c
13 SRCS+=  make-relative-prefix.c lrealpath.c xmalloc.c xexit.c
14
15 CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\"
16 CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\"
17 CFLAGS+= -DCCVER=\"$(MY_CCVER)\"
18 CFLAGS+= -DFORTRAN_INIT=\"-lg2c\" -DFORTRAN_INIT_PROFILE=\"-lg2c_p\"
19
20 DPADD=  ${LIBCC_INT}
21 LDADD=  ${LIBCC_INT}
22
23 CLEANFILES+= f77.1
24
25 f77.1: g77.1
26         cat ${.ALLSRC} > ${.TARGET}
27
28 .include <bsd.prog.mk>