Stop installing profiling libraries as /usr/lib/lib${LIB}_p.a, because
[dragonfly.git] / gnu / usr.bin / cc40 / cc_prep / Makefile
1 # $DragonFly: src/gnu/usr.bin/cc40/cc_prep/Attic/Makefile,v 1.1 2005/06/05 22:43:20 corecode Exp $
2
3 .include "../Makefile.inc"
4
5 PATCHES!=       echo ${.CURDIR}/patches/*.patch
6 CONTRIBDIR=     ${GCCDIR}/gcc
7
8 version_local.c: version.c Makefile
9         sed -e 's/\(const char version.*\)";/\1 [DragonFly]";/' < ${.ALLSRC:M*c} > ${.TARGET}
10
11 configargs.h: Makefile
12         echo '/* Generated automatically. */' > configargs.h
13         echo 'static const char configuration_arguments[] = "./configure --prefix=/usr --host=${target}";' >> configargs.h
14         echo 'static const char thread_model[] = "posix";' >> configargs.h
15         echo >> configargs.h
16         echo 'static const struct {' >> configargs.h
17         echo '  const char *name, *value;' >> configargs.h
18         echo '} configure_default_options[] = { { NULL, NULL} };' >> configargs.h
19
20 CLEANFILES+=    version_local.c configargs.h
21
22 .include <bsd.prog.mk>
23
24 # keep this order!
25 depend: version_local.c configargs.h
26
27 # we don't use SRCS, so we can't use the normal bsd.dep.mk code
28 .for _PSRC in ${PATCHES:M*.patch}
29 .for _PC in ${_PSRC:T:S/.patch$//:S|,|/|g}
30
31 ${_PC}: ${CONTRIBDIR}/${_PC} ${_PSRC}
32         mkdir -p ${.TARGET:H}
33         patch -o ${.TARGET} -i ${.ALLSRC:M*.patch} ${CONTRIBDIR}/${.TARGET}
34
35 CLEANFILES:=    ${CLEANFILES} ${_PC}
36
37 depend: ${_PC}
38 .endfor
39 .endfor