ff4b8b68d1cab9035d23ef7a9cad5e95785636d1
[dragonfly.git] / gnu / usr.bin / cc / f771 / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cc/f771/Makefile,v 1.5.2.1 2000/07/04 05:39:50 obrien Exp $
2 # $DragonFly: src/gnu/usr.bin/cc/f771/Attic/Makefile,v 1.4 2004/01/29 01:39:48 dillon Exp $
3
4 .include "${.CURDIR}/../Makefile.inc"
5
6 .PATH: ${GCCDIR}/f
7
8 PROG=   f771
9 SRCS=   bad.c bit.c bld.c com.c data.c equiv.c expr.c global.c implic.c info.c \
10         intrin.c lab.c lex.c malloc.c name.c parse.c proj.c src.c st.c sta.c \
11         stb.c stc.c std.c ste.c storag.c stp.c str.c sts.c stt.c stu.c stv.c \
12         stw.c symbol.c target.c top.c type.c version.c where.c
13 BINDIR= /usr/libexec/binutils212
14 NOMAN=
15
16 CFLAGS+= -I${GCCDIR}/f -I.
17
18 DPADD=  ${LIBCC_INT} 
19 LDADD=  ${LIBCC_INT}
20
21 build-tools: fini
22
23 #  The use of ``proj+%BT.o'' is to get around bogus dependacy information
24 #  created for build-tools sources.
25 fini: fini.o proj+%BT.o
26         ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
27
28 proj+%BT.o: proj.c
29         ${CC} ${CFLAGS} -o ${.TARGET} -c ${.ALLSRC}
30
31 CLEANFILES+=    fini fini.o proj+%BT.o
32
33 #-----------------------------------------------------------------------
34 # str-* gunk
35
36 .for i in 1t 2t fo io nq op ot
37 .ORDER: str-$i.h str-$i.j
38 str-$i.j str-$i.h: str-$i.fin fini
39         ./fini ${GCCDIR}/f/str-$i.fin str-$i.j str-$i.h
40
41 FINIHDRS+=      str-$i.j str-$i.h
42 .endfor
43
44 CLEANFILES+=    ${FINIHDRS}
45
46 .include <bsd.prog.mk>
47
48 #-----------------------------------------------------------------------
49 # Fixups.
50
51 .if !exists(${DEPENDFILE})
52 ${OBJS:Nproj.o} ${DEPENDFILE}: ${FINIHDRS}
53 .endif