Imported Upstream version 1.22.3
[platform/upstream/groff.git] / src / roff / troff / Makefile.sub
1 # Makefile.sub for `src roff troff'
2 #
3 # File position: <groff-source>/src/roff/troff/Makefile.sub
4 #
5 # Copyright (C) 2014  Free Software Foundation, Inc.
6 #
7 # This file is part of `font utf8' which is part of `groff'.
8 #
9 # `groff' is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # `groff' is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 # General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see
21 # <http://www.gnu.org/licenses/gpl-2.0.html>.
22 #
23 ########################################################################
24
25 PROG=troff$(EXEEXT)
26 MAN1=troff.n
27 XLIBS=$(LIBGROFF) $(LIBGNU)
28 MLIB=$(LIBM)
29 OBJS=\
30   dictionary.$(OBJEXT) \
31   div.$(OBJEXT) \
32   env.$(OBJEXT) \
33   input.$(OBJEXT) \
34   majorminor.$(OBJEXT) \
35   mtsm.$(OBJEXT) \
36   node.$(OBJEXT) \
37   number.$(OBJEXT) \
38   reg.$(OBJEXT)
39 CCSRCS=\
40   $(srcdir)/dictionary.cpp \
41   $(srcdir)/div.cpp \
42   $(srcdir)/env.cpp \
43   $(srcdir)/input.cpp \
44   majorminor.cpp \
45   $(srcdir)/mtsm.cpp \
46   $(srcdir)/node.cpp \
47   $(srcdir)/number.cpp \
48   $(srcdir)/reg.cpp
49 HDRS=\
50   $(srcdir)/charinfo.h \
51   $(srcdir)/dictionary.h \
52   $(srcdir)/div.h \
53   $(srcdir)/env.h \
54   $(srcdir)/hvunits.h \
55   $(srcdir)/input.h \
56   $(srcdir)/mtsm.h \
57   $(srcdir)/node.h \
58   $(srcdir)/reg.h \
59   $(srcdir)/request.h \
60   $(srcdir)/token.h \
61   $(srcdir)/troff.h
62 GENSRCS=majorminor.cpp
63 NAMEPREFIX=$(g)
64 RM=rm -f
65
66 majorminor.cpp: $(top_srcdir)/VERSION $(top_srcdir)/REVISION
67         @echo Making $@
68         @$(RM) $@
69         @echo const char \*major_version = \
70           \"`sed -e 's/^\([^.]*\)\..*$$/\1/' $(top_srcdir)/VERSION`\"\; >$@
71         @echo const char \*minor_version = \
72            \"`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' $(top_srcdir)/VERSION`\"\; \
73            >>$@
74         @echo const char \*revision = \"`cat $(top_srcdir)/REVISION`\"\; >>$@
75
76 ########################################################################
77 # Emacs settings
78 ########################################################################
79 #
80 # Local Variables:
81 # mode: makefile
82 # End: