diff options
| author | wiz <wiz@NetBSD.org> | 2001-04-19 14:33:07 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2001-04-19 14:33:07 +0000 |
| commit | 2f7eec860dca4d698efa5c8264f14c472bc523b5 (patch) | |
| tree | 643fbd5baa8bb85c340ef0d89a0394c5fc11f9b2 /gnu/usr.bin | |
| parent | 3e40b73c85af666418150417c8c74f8465aa0137 (diff) | |
New reachover build structure for groff 1.16.1.
Diffstat (limited to 'gnu/usr.bin')
| -rw-r--r-- | gnu/usr.bin/groff/Makefile.comp | 16 | ||||
| -rw-r--r-- | gnu/usr.bin/groff/Makefile.lib | 17 | ||||
| -rw-r--r-- | gnu/usr.bin/groff/Makefile.path | 4 | ||||
| -rw-r--r-- | gnu/usr.bin/groff/devices/devcp1047/Makefile | 38 | ||||
| -rw-r--r-- | gnu/usr.bin/groff/devices/devhtml/Makefile | 12 | ||||
| -rw-r--r-- | gnu/usr.bin/groff/devices/devlbp/Makefile | 23 | ||||
| -rw-r--r-- | gnu/usr.bin/groff/devices/devutf8/Makefile | 38 | ||||
| -rw-r--r-- | gnu/usr.bin/groff/grn/Makefile | 14 | ||||
| -rw-r--r-- | gnu/usr.bin/groff/grohtml/Makefile | 13 | ||||
| -rw-r--r-- | gnu/usr.bin/groff/grolbp/Makefile | 13 |
10 files changed, 188 insertions, 0 deletions
diff --git a/gnu/usr.bin/groff/Makefile.comp b/gnu/usr.bin/groff/Makefile.comp new file mode 100644 index 00000000000..8afe52af8cf --- /dev/null +++ b/gnu/usr.bin/groff/Makefile.comp @@ -0,0 +1,16 @@ +# $NetBSD: Makefile.comp,v 1.1.1.1 2001/04/19 14:33:07 wiz Exp $ + +DEFINES= -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1 -DRET_TYPE_SRAND_IS_VOID=1 -DHAVE_SYS_NERR=1 -DHAVE_SYS_ERRLIST=1 -DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_FMOD=1 -DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 -DHAVE_RENAME=1 -DHAVE_MKSTEMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRSEP=1 -DHAVE_STRDUP=1 -DSYS_SIGLIST_DECLARED=1 + +CPPFLAGS+= ${DEFINES} -I${.CURDIR}/../include -I${IDIST}/src/include + +# XXX This won't necessarily work if running a parallel make, but does +# XXX work here because each subdir builds at most one .cc file from a .y. +YFLAGS+= -d +.y.cc: + $(YACC) $(YFLAGS) $(.IMPSRC) + mv y.tab.c $(.PREFIX).cc + mv y.tab.h $(.PREFIX).tab.h + +.include "../Makefile.path" +.include "../../Makefile.inc" diff --git a/gnu/usr.bin/groff/Makefile.lib b/gnu/usr.bin/groff/Makefile.lib new file mode 100644 index 00000000000..2a3b8fa94c4 --- /dev/null +++ b/gnu/usr.bin/groff/Makefile.lib @@ -0,0 +1,17 @@ +# $NetBSD: Makefile.lib,v 1.1.1.1 2001/04/19 14:33:07 wiz Exp $ + +.include <bsd.own.mk> + +LIBGROFFDIR!=cd ${.CURDIR}/../libgroff && ${PRINTOBJDIR} + +LIBDRIVERDIR!=cd ${.CURDIR}/../libdriver && ${PRINTOBJDIR} + +LIBBIBDIR!=cd ${.CURDIR}/../libbib && ${PRINTOBJDIR} + +LIBGROFF= ${LIBGROFFDIR}/libgroff.a +LIBDRIVER= ${LIBDRIVERDIR}/libdriver.a +LIBBIB= ${LIBBIBDIR}/libbib.a + +.if exists(../Makefile.comp) +.include "../Makefile.comp" +.endif diff --git a/gnu/usr.bin/groff/Makefile.path b/gnu/usr.bin/groff/Makefile.path new file mode 100644 index 00000000000..a6760952cd1 --- /dev/null +++ b/gnu/usr.bin/groff/Makefile.path @@ -0,0 +1,4 @@ +# $NetBSD: Makefile.path,v 1.1.1.1 2001/04/19 14:33:07 wiz Exp $ + +IDIST= ${.CURDIR}/../../../dist/groff +IIDIST= ${.CURDIR}/../../../../dist/groff diff --git a/gnu/usr.bin/groff/devices/devcp1047/Makefile b/gnu/usr.bin/groff/devices/devcp1047/Makefile new file mode 100644 index 00000000000..8ded6159092 --- /dev/null +++ b/gnu/usr.bin/groff/devices/devcp1047/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/04/19 14:33:07 wiz Exp $ + +.include "../../Makefile.path" + +.PATH: ${IIDIST}/font/devcp1047 + +DEVICE= cp1047 +FONTFILES= $(FONTS) DESC +FONTS= R I B BI + +RES=240 +CPI=10 +LPI=6 + +$(FONTS): R.proto + @echo Making $@ + @-rm -f $@ + @(charwidth=`expr $(RES) / $(CPI)` ; \ + sed -e "s/^name [A-Z]*$$/name $@/" \ + -e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \ + -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \ + -e "s/^internalname .*$$/internalname $@/" \ + -e "/^internalname/s/BI/3/" \ + -e "/^internalname/s/B/2/" \ + -e "/^internalname/s/I/1/" \ + -e "/^internalname .*[^ 0-9]/d" \ + $> >$@) + +DESC: DESC.proto + @echo Making $@ + @-rm -f $@ + @sed -e "s/^res .*$$/res $(RES)/" \ + -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \ + -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \ + -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \ + $> >$@ + +.include "../Makefile.dev" diff --git a/gnu/usr.bin/groff/devices/devhtml/Makefile b/gnu/usr.bin/groff/devices/devhtml/Makefile new file mode 100644 index 00000000000..a940c5d940d --- /dev/null +++ b/gnu/usr.bin/groff/devices/devhtml/Makefile @@ -0,0 +1,12 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/04/19 14:33:07 wiz Exp $ + +.include "../../Makefile.path" + +.PATH: ${IIDIST}/font/devhtml + +DEVICE= html +FONTFILES= DESC TR TI TB TBI CR CI CB CBI HR HI HB HBI NR NI NB NBI S + +MKOBJ= no + +.include "../Makefile.dev" diff --git a/gnu/usr.bin/groff/devices/devlbp/Makefile b/gnu/usr.bin/groff/devices/devlbp/Makefile new file mode 100644 index 00000000000..83a0ac68462 --- /dev/null +++ b/gnu/usr.bin/groff/devices/devlbp/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/04/19 14:33:07 wiz Exp $ + +.include "../../Makefile.path" + +.PATH: ${IIDIST}/font/devlbp + +DEVICE= lbp +FONTFILES= DESC HB HBI HI HR TB TBI TI TR + +CLEANFILES= DESC + +LBPPRINT= $(PSPRINT) + +DESC: DESC.in + @cat $> >>$@ + if test "$(PAGE)" = A4; then \ + echo "papersize a4" >>$@; \ + else \ + echo "papersize letter" >>$@; \ + fi + test -z '$(LBPPRINT)' || echo print '$(LBPPRINT)' >>$@ + +.include "../Makefile.dev" diff --git a/gnu/usr.bin/groff/devices/devutf8/Makefile b/gnu/usr.bin/groff/devices/devutf8/Makefile new file mode 100644 index 00000000000..9267b90848c --- /dev/null +++ b/gnu/usr.bin/groff/devices/devutf8/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/04/19 14:33:07 wiz Exp $ + +.include "../../Makefile.path" + +.PATH: ${IIDIST}/font/devutf8 + +DEVICE= utf8 +FONTFILES= $(FONTS) DESC +FONTS= R I B BI + +RES=240 +CPI=10 +LPI=6 + +$(FONTS): R.proto + @echo Making $@ + @-rm -f $@ + @(charwidth=`expr $(RES) / $(CPI)` ; \ + sed -e "s/^name [A-Z]*$$/name $@/" \ + -e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \ + -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \ + -e "s/^internalname .*$$/internalname $@/" \ + -e "/^internalname/s/BI/3/" \ + -e "/^internalname/s/B/2/" \ + -e "/^internalname/s/I/1/" \ + -e "/^internalname .*[^ 0-9]/d" \ + $> >$@) + +DESC: DESC.proto + @echo Making $@ + @-rm -f $@ + @sed -e "s/^res .*$$/res $(RES)/" \ + -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \ + -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \ + -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \ + $> >$@ + +.include "../Makefile.dev" diff --git a/gnu/usr.bin/groff/grn/Makefile b/gnu/usr.bin/groff/grn/Makefile new file mode 100644 index 00000000000..122ba5c166a --- /dev/null +++ b/gnu/usr.bin/groff/grn/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/04/19 14:33:14 wiz Exp $ + +.include "../Makefile.lib" + +DIST= ${IDIST}/src/preproc/grn +.PATH: ${DIST} + +PROG= grn +SRCS= hdb.cc hgraph.cc hpoint.cc main.cc +CPPFLAGS+= -I${DIST} +LDADD+= $(LIBGROFF) -lm +DPADD+= $(LIBGROFF) ${LIBM} + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/groff/grohtml/Makefile b/gnu/usr.bin/groff/grohtml/Makefile new file mode 100644 index 00000000000..04acf2fde85 --- /dev/null +++ b/gnu/usr.bin/groff/grohtml/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/04/19 14:33:14 wiz Exp $ + +.include "../Makefile.lib" + +DIST= ${IDIST}/src/devices/grohtml +.PATH: ${DIST} + +PROG= grohtml +SRCS= html.cc output.cc +LDADD+= $(LIBDRIVER) $(LIBGROFF) -lm +DPADD+= $(LIBDRIVER) $(LIBGROFF) $(LIBM) + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/groff/grolbp/Makefile b/gnu/usr.bin/groff/grolbp/Makefile new file mode 100644 index 00000000000..9664c811369 --- /dev/null +++ b/gnu/usr.bin/groff/grolbp/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/04/19 14:33:14 wiz Exp $ + +.include "../Makefile.lib" + +DIST= ${IDIST}/src/devices/grolbp +.PATH: ${DIST} + +PROG= grolbp +SRCS= lbp.cc +LDADD+= $(LIBDRIVER) $(LIBGROFF) -lm +DPADD+= $(LIBDRIVER) $(LIBGROFF) $(LIBM) + +.include <bsd.prog.mk> |
