1 # $NetBSD: Makefile,v 1.9 2008/05/03 14:48:30 lukem Exp $
3 # $FreeBSD: src/gnu/usr.bin/groff/src/libs/libgroff/Makefile,v 1.5 2003/05/01 13:22:19 ru Exp $
5 DIST_SUBDIR
= src
/libs
/libgroff
10 SRCS
= assert.
cpp change_lf.
cpp cmap.
cpp color.
cpp cset.
cpp \
11 device.
cpp errarg.
cpp error.
cpp \
12 fatal.
cpp filename.
cpp font.
cpp fontfile.
cpp geometry.
cpp\
13 glyphuni.
cpp htmlhint.
cpp hypot.
cpp invalid.
cpp \
14 lf.
cpp lineno.
cpp macropath.
cpp \
15 maxfilename.
cpp maxpathname.
cpp mksdir.
cpp \
16 nametoindex.
cpp new.
cpp \
17 paper.
cpp prime.
cpp ptable.
cpp quotearg.c \
18 relocate.
cpp searchpath.
cpp spawnvp.c string.
cpp \
19 strsave.
cpp symbol.
cpp tmpfile.
cpp tmpname.
cpp \
20 unicode.
cpp uniglyph.
cpp uniuni.
cpp version.
cpp
21 SRCS
+= getopt.c getopt1.c iftoa.c itoa.c matherr.c progname.c
22 CFLAGS
+= -D__GETOPT_PREFIX
=groff_
23 CLEANFILES
= version.
cpp
27 version.
cpp: ${GROFF_DIST}/VERSION
${GROFF_DIST}/REVISION
30 v
=`cat ${GROFF_DIST}/VERSION`;\
31 r
=`cat ${GROFF_DIST}/REVISION`;\
32 echo
'const char *version_string = "'$$v'";' ;\
33 echo
'const char *revision_string = "'$$r'";' ;\
34 echo
'extern "C" const char *Version_string = "'$$v'.'$$r'";' |\
35 ${TOOL_SED} -e
's/\.0\"/\"/'; \