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