1 # $NetBSD: Makefile,v 1.9 2008/10/19 22:05:24 apb Exp $
6 DIST
= ${X11SRCDIR.xc
}/lib
/${LIB}
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
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 \
25 DPSOPSCFILES
= ${DPSOPSHEADERFILES
:.h
=.c
}
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 \
33 PSOPSCFILES
= ${PSOPSHEADERFILES
:.h
=.c
}
35 DPSRCS
+= ${DPSOPSHEADERFILES} ${DPSOPSCFILES}
36 CLEANFILES
+= ${DPSOPSHEADERFILES} ${DPSOPSCFILES}
37 DPSRCS
+= ${PSOPSHEADERFILES} ${PSOPSCFILES}
38 CLEANFILES
+= ${PSOPSHEADERFILES} ${PSOPSCFILES}
41 psops.h
: ${PSOPSHEADERFILES} psname.txt header.txt psifdef.txt psendif.txt
43 rm -rf
${.TARGET
} ${.TARGET
}.tmp
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' \
50 |
${TOOL_AWK} '/;/ {print; printf("\n");}' ; \
51 (cd
${DIST} && cat psendif.txt
); \
53 && mv
${.TARGET
}.tmp
${.TARGET
}
54 CLEANFILES
+= psops.h psops.h.tmp
56 dpsops.h
: ${DPSOPSHEADERFILES} dpsname.txt header.txt dpsifdef.txt dpsendif.txt
58 rm -rf
${.TARGET
} ${.TARGET
}.tmp
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' \
65 |
${TOOL_AWK} '/;/ {print; printf("\n");}' ; \
66 (cd
${DIST} && cat dpsendif.txt
); \
68 && mv
${.TARGET
}.tmp
${.TARGET
}
69 CLEANFILES
+= dpsops.h dpsops.h.tmp
71 .
include "${NETBSDSRCDIR}/x11/tools/pswrap/Makefile.pswrap"
75 X11
${.CURDIR
}/..
/X11
/dynamic