Spring-cleaning.
[dragonfly.git] / gnu / lib / gcc2 / libg++ / Makefile
1 #
2 # $FreeBSD: src/gnu/lib/libg++/Makefile,v 1.22 1999/08/27 23:32:45 peter Exp $
3 # $DragonFly: src/gnu/lib/gcc2/libg++/Attic/Makefile,v 1.2 2004/01/28 16:41:17 joerg Exp $
4 #
5
6 GPPDIR= ${.CURDIR}/../../../../contrib/libg++
7
8 .PATH:  ${GPPDIR}/libiberty ${GPPDIR}/libio ${GPPDIR}/libg++/src ${GPPDIR}/librx
9
10 SUBDIR+=        doc
11
12 LIB=            g++
13 SHLIB_MAJOR=    4
14 SHLIB_MINOR=    0
15
16 CFLAGS+=        -I${GPPDIR}/include -I${DESTDIR}/usr/include/c++/2.95
17 CXXFLAGS+=      -I${GPPDIR}/include -I${GPPDIR}/libio -I${GPPDIR}/libstdc++
18
19 # Strictly speaking, libg++ should depend on libstdc++, but 1) It doesn't
20 # work (ld freaks out), and 2) the c++ driver adds it explicitly (which works).
21 LDADD+=         -lm
22 DPADD+=         ${LIBM}
23
24 # C source
25 SRCS=   bitand.c bitany.c bitblt.c bitclear.c bitcopy.c bitcount.c \
26         bitinvert.c bitlcomp.c bitset1.c bitxor.c timer.c
27
28 # C source for librx
29 SRCS+=  rx.c
30
31 # C++ source
32 SRCS+=  ACG.cc AllocRing.cc Binomial.cc BitSet.cc BitString.cc DLList.cc \
33         DiscUnif.cc Erlang.cc Fix.cc Fix16.cc Fix24.cc Geom.cc GetOpt.cc \
34         HypGeom.cc Intdouble.cc Integer.cc LogNorm.cc MLCG.cc NegExp.cc \
35         Normal.cc Obstack.cc Poisson.cc RNG.cc Random.cc Rational.cc \
36         Regex.cc RndInt.cc SLList.cc SmplHist.cc SmplStat.cc String.cc \
37         Uniform.cc Weibull.cc \
38         builtin.cc compare.cc error.cc fmtq.cc gcd.cc hash.cc ioob.cc \
39         lg.cc pow.cc sqrt.cc
40
41 # "normal" headers  (no CursesW.h[its useless], no bool.h[in stdc++])
42 HDRS=   ACG.h AllocRing.h Binomial.h BitSet.h BitString.h Complex.h \
43         DLList.h DiscUnif.h Erlang.h Fix.h Fix16.h Fix24.h Geom.h GetOpt.h \
44         HypGeom.h Incremental.h Integer.h LogNorm.h MLCG.h NegExp.h Normal.h \
45         Obstack.h Pix.h Poisson.h RNG.h Random.h Rational.h Regex.h RndInt.h \
46         SLList.h SmplHist.h SmplStat.h String.h Uniform.h Weibull.h \
47         bitdo1.h bitdo2.h bitprims.h builtin.h compare.h generic.h \
48         getpagesize.h libc.h minmax.h osfcn.h std.h strclass.h swap.h \
49         sysent.h typemacros.h
50
51 beforeinstall:
52         ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
53                 ${HDRS:S;^;${GPPDIR}/libg++/src/;} \
54                 ${GPPDIR}/librx/rx.h \
55                 ${DESTDIR}/usr/include/c++/2.95
56
57 .include <bsd.lib.mk>