From 3c4c579d136840d92de18b04059a858449d2104f Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 3 Oct 1996 23:00:09 +0000 Subject: [PATCH] Initial attempt at a bmakefile for genclass. --- gnu/usr.bin/genclass/Makefile | 52 +++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 gnu/usr.bin/genclass/Makefile diff --git a/gnu/usr.bin/genclass/Makefile b/gnu/usr.bin/genclass/Makefile new file mode 100644 index 00000000000..808b01231c2 --- /dev/null +++ b/gnu/usr.bin/genclass/Makefile @@ -0,0 +1,52 @@ +# +# $Id$ +# + +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}/' < ${.ALLSRC} > genclass + +beforeinstall: + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${GEN:S;^;${GPPDIR}/libg++/src/gen/;} \ + ${DESTDIR}${PROTODIR} + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} genclass \ + ${DESTDIR}${BINDIR} + +.include