Update the GCC3 infrastructure Stage 1/2. This commit generates the basic
[dragonfly.git] / gnu / usr.bin / cc3 / f771 / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cc/f771/Makefile,v 1.10 2004/01/11 20:45:46 ru Exp $
2 # $DragonFly: src/gnu/usr.bin/cc3/f771/Attic/Makefile,v 1.4 2004/02/02 23:35:11 dillon Exp $
3
4 .include "${.CURDIR}/../Makefile.inc"
5
6 CFLAGS+=        -I${.CURDIR}/../config
7
8 .PATH: ${GCCDIR}/gcc/f ${GCCDIR}/gcc
9
10 PROG=   f771
11 SRCS=   bad.c bit.c bld.c com.c data.c equiv.c expr.c global.c implic.c info.c \
12         intrin.c lab.c lex.c malloc.c name.c parse.c        src.c st.c sta.c \
13         stb.c stc.c std.c ste.c storag.c stp.c str.c sts.c stt.c stu.c stv.c \
14         stw.c symbol.c target.c top.c type.c where.c main.c
15 NOMAN=
16
17 CFLAGS+= -I${GCCDIR}/gcc/f -I.
18
19 DPADD=  ${LIBCC_INT} 
20 LDADD=  ${LIBCC_INT}
21
22 build-tools: fini
23 fini: fini.o
24         ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
25
26 CLEANFILES=     fini fini.o
27
28 #-----------------------------------------------------------------------
29 # str-* gunk
30
31 .for i in 1t 2t fo io nq op ot
32 .ORDER: str-$i.h str-$i.j
33 str-$i.j str-$i.h: str-$i.fin fini
34         ./fini ${GCCDIR}/gcc/f/str-$i.fin str-$i.j str-$i.h
35
36 FINIHDRS+=      str-$i.j str-$i.h
37 .endfor
38
39 SRCS+=          ${FINIHDRS:M*.h}
40 CLEANFILES+=    ${FINIHDRS}
41
42 .include <bsd.prog.mk>