1# $NetBSD: Makefile,v 1.9 2008/10/19 22:05:24 apb Exp $ 2 3.include <bsd.own.mk> 4 5LIB= dps 6DIST= ${X11SRCDIR.xc}/lib/${LIB} 7.PATH: ${DIST} 8 9SRCS= dpsabbrev.c dpsclient.c dpsdict.c dpsexcept.c dpsprintf.c \ 10 XDPS.c dpsXclient.c dpsXcmu.c dpsXpriv.c dpsXtdisp.c dpssysnames.c \ 11 csconndi.c csfindNX.c cslibext.c cslibint.c csopendi.c csstartNX.c \ 12 ${DPSOPSCFILES} ${PSOPSCFILES} 13 14INCS= dpsops.h psops.h 15INCSDIR=${X11INCDIR}/DPS 16 17CPPFLAGS+= -DXDPS -DCSDPS -DTCPCONN -DUNIXCONN 18 19DPSOPSHEADERFILES= \ 20 dpsclrops.h dpsctrlops.h dpsctxtops.h dpsdataops.h dpsfontops.h \ 21 dpsgsttops.h dpsioops.h dpsmathops.h dpsmtrxops.h dpsmiscops.h \ 22 dpsopstack.h dpspntops.h dpspathops.h dpssysops.h dpswinops.h \ 23 dpsXops.h dpsl2ops.h 24 25DPSOPSCFILES= ${DPSOPSHEADERFILES:.h=.c} 26 27PSOPSHEADERFILES= \ 28 psclrops.h psctrlops.h psctxtops.h psdataops.h psfontops.h \ 29 psgsttops.h psioops.h psmathops.h psmtrxops.h psmiscops.h \ 30 pspntops.h pspathops.h pssysops.h pswinops.h psopstack.h \ 31 psXops.h psl2ops.h 32 33PSOPSCFILES= ${PSOPSHEADERFILES:.h=.c} 34 35DPSRCS+= ${DPSOPSHEADERFILES} ${DPSOPSCFILES} 36CLEANFILES+= ${DPSOPSHEADERFILES} ${DPSOPSCFILES} 37DPSRCS+= ${PSOPSHEADERFILES} ${PSOPSCFILES} 38CLEANFILES+= ${PSOPSHEADERFILES} ${PSOPSCFILES} 39CPPFLAGS+= -I. 40 41psops.h: ${PSOPSHEADERFILES} psname.txt header.txt psifdef.txt psendif.txt 42 ${_MKTARGET_CREATE} 43 rm -rf ${.TARGET} ${.TARGET}.tmp 44 ( \ 45 (cd ${DIST} && cat psname.txt header.txt psifdef.txt ); \ 46 cat ${PSOPSHEADERFILES} \ 47 | ${TOOL_SED} -e '/^$$/D' -e '/#/D' -e '/^\//D' \ 48 -e '/^ gener/D' -e '/^.\//D' \ 49 | sort \ 50 | ${TOOL_AWK} '/;/ {print; printf("\n");}' ; \ 51 (cd ${DIST} && cat psendif.txt ); \ 52 ) > ${.TARGET}.tmp \ 53 && mv ${.TARGET}.tmp ${.TARGET} 54CLEANFILES+= psops.h psops.h.tmp 55 56dpsops.h: ${DPSOPSHEADERFILES} dpsname.txt header.txt dpsifdef.txt dpsendif.txt 57 ${_MKTARGET_CREATE} 58 rm -rf ${.TARGET} ${.TARGET}.tmp 59 ( \ 60 (cd ${DIST} && cat dpsname.txt header.txt dpsifdef.txt ); \ 61 cat ${DPSOPSHEADERFILES} \ 62 | ${TOOL_SED} -e '/^$$/D' -e '/#/D' -e '/^\//D' \ 63 -e '/^ gener/D' -e '/^.\//D' \ 64 | sort \ 65 | ${TOOL_AWK} '/;/ {print; printf("\n");}' ; \ 66 (cd ${DIST} && cat dpsendif.txt ); \ 67 ) > ${.TARGET}.tmp \ 68 && mv ${.TARGET}.tmp ${.TARGET} 69CLEANFILES+= dpsops.h dpsops.h.tmp 70 71.include "${NETBSDSRCDIR}/x11/tools/pswrap/Makefile.pswrap" 72 73LIBDPLIBS=\ 74 Xt ${.CURDIR}/../Xt \ 75 X11 ${.CURDIR}/../X11/dynamic 76 77.include <bsd.x11.mk> 78.include <bsd.lib.mk> 79