New reachover build structure for groff 1.16.1.
This commit is contained in:
parent
3e40b73c85
commit
2f7eec860d
|
@ -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"
|
|
@ -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
|
|
@ -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
|
|
@ -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"
|
|
@ -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"
|
|
@ -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"
|
|
@ -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"
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue