blob: 54568bdee6c2f5744610298cce4de80c42c30375 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#
# $FreeBSD$
#
GPPDIR= ${.CURDIR}/../../../contrib/libg++
.PATH: ${GPPDIR}/libg++/src ${GPPDIR}/libg++/genclass
all: genclass
CLEANFILES+= genclass
PROTODIR= /usr/share/libg++
VERSION!= sed -n -e '/^VERSION/s/VERSION *= *\(.*\)/\1/p' \
< ${GPPDIR}/libg++/Makefile.in
#genclass prototypes
GEN= AVLMap.ccP AVLMap.hP AVLSet.ccP AVLSet.hP AVec.ccP AVec.hP \
BSTSet.ccP BSTSet.hP Bag.ccP Bag.hP CHBag.ccP CHBag.hP \
CHMap.ccP CHMap.hP CHNode.ccP CHNode.hP CHSet.ccP CHSet.hP \
DLDeque.ccP DLDeque.hP DLList.ccP DLList.hP Deque.ccP Deque.hP \
FPQueue.ccP FPQueue.hP FPStack.ccP FPStack.hP FPlex.ccP FPlex.hP \
List.ccP List.hP MPlex.ccP MPlex.hP Map.ccP Map.hP \
OSLBag.ccP OSLBag.hP OSLSet.ccP OSLSet.hP OXPBag.ccP OXPBag.hP \
OXPSet.ccP OXPSet.hP PHPQ.ccP PHPQ.hP PQ.ccP PQ.hP \
PSList.hP PVec.hP Plex.ccP Plex.hP Queue.ccP Queue.hP \
RAVLMap.ccP RAVLMap.hP RPlex.ccP RPlex.hP SLBag.ccP SLBag.hP \
SLList.ccP SLList.hP SLQueue.ccP SLQueue.hP SLSet.ccP SLSet.hP \
SLStack.ccP SLStack.hP Set.ccP Set.hP SkipBag.ccP SkipBag.hP \
SkipMap.ccP SkipMap.hP SkipSet.ccP SkipSet.hP SplayBag.ccP SplayBag.hP \
SplayMap.ccP SplayMap.hP SplayNode.ccP SplayNode.hP \
SplayPQ.ccP SplayPQ.hP SplaySet.ccP SplaySet.hP Stack.ccP Stack.hP \
VHBag.ccP VHBag.hP VHMap.ccP VHMap.hP VHSet.ccP VHSet.hP \
VOHSet.ccP VOHSet.hP VQueue.ccP VQueue.hP VStack.ccP VStack.hP \
Vec.ccP Vec.hP XPBag.ccP XPBag.hP XPDeque.ccP XPDeque.hP \
XPPQ.ccP XPPQ.hP XPQueue.ccP XPQueue.hP XPSet.ccP XPSet.hP \
XPStack.ccP XPStack.hP XPlex.ccP XPlex.hP \
defs.hP intSList.hP intVec.hP
genclass: genclass.sh
sed -e 's@^PROTODIR=.*$$@PROTODIR=$$\{PROTODIR-${PROTODIR}\}@' \
-e 's/<VERSION>/${VERSION}/' < ${.ALLSRC} > genclass
beforeinstall:
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${GEN:S;^;${GPPDIR}/libg++/src/gen/;} \
${DESTDIR}${PROTODIR}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} genclass \
${DESTDIR}${BINDIR}
.include <bsd.prog.mk>
|