Sync usage with man page.
[netbsd-mini2440.git] / x11 / lib / dps / Makefile
blob253b4d2bf16c5d70f224b081f11e8871dc15ad8f
1 # $NetBSD: Makefile,v 1.9 2008/10/19 22:05:24 apb Exp $
3 .include <bsd.own.mk>
5 LIB= dps
6 DIST= ${X11SRCDIR.xc}/lib/${LIB}
7 .PATH: ${DIST}
9 SRCS= 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}
14 INCS= dpsops.h psops.h
15 INCSDIR=${X11INCDIR}/DPS
17 CPPFLAGS+= -DXDPS -DCSDPS -DTCPCONN -DUNIXCONN
19 DPSOPSHEADERFILES= \
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
25 DPSOPSCFILES= ${DPSOPSHEADERFILES:.h=.c}
27 PSOPSHEADERFILES= \
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
33 PSOPSCFILES= ${PSOPSHEADERFILES:.h=.c}
35 DPSRCS+= ${DPSOPSHEADERFILES} ${DPSOPSCFILES}
36 CLEANFILES+= ${DPSOPSHEADERFILES} ${DPSOPSCFILES}
37 DPSRCS+= ${PSOPSHEADERFILES} ${PSOPSCFILES}
38 CLEANFILES+= ${PSOPSHEADERFILES} ${PSOPSCFILES}
39 CPPFLAGS+= -I.
41 psops.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}
54 CLEANFILES+= psops.h psops.h.tmp
56 dpsops.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}
69 CLEANFILES+= dpsops.h dpsops.h.tmp
71 .include "${NETBSDSRCDIR}/x11/tools/pswrap/Makefile.pswrap"
73 LIBDPLIBS=\
74 Xt ${.CURDIR}/../Xt \
75 X11 ${.CURDIR}/../X11/dynamic
77 .include <bsd.x11.mk>
78 .include <bsd.lib.mk>