Imported Upstream version 1.22.3
[platform/upstream/groff.git] / Makefile.ccpg
1 # Copyright (C) 1992-2014 Free Software Foundation, Inc.
2 #      Written by James Clark (jjc@jclark.com)
3 #
4 # This file is part of groff.
5 #
6 # groff is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free
8 # Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 # for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #
19 # Makefile.ccpg
20 #
21 MAKEFILEPARTS=\
22   $(top_srcdir)/Makefile.comm \
23   $(top_builddir)/Makefile.cfg \
24   $(srcdir)/Makefile.sub \
25   $(top_srcdir)/Makefile.ccpg \
26   Makefile.dep
27
28 all: $(PROG) $(MANPAGES)
29
30 $(PROG): $(OBJS) $(XLIBS)
31         $(LINK.cpp) -o $@ $(OBJS) $(XLIBS) $(EXTRA_LDFLAGS) $(LIBS) $(MLIB)
32
33 install_bin: install_prog
34 install_prog: $(PROG)
35 install_data: install_man
36 install_man: $(MANPAGES)
37 uninstall_sub: uninstall_prog uninstall_man
38 depend: depend_src
39 depend.temp: $(GENSRCS) $(YTABC)
40 distfiles: $(YTABC)
41 TAGS: TAGS_src
42 TAGS_src: $(CCSRCS) $(CSRCS) $(GRAM) $(HDRS)
43 Makefile: $(MAKEFILEPARTS)
44 Makefile.dep:
45         touch Makefile.dep
46 $(top_builddir)/stamp-h $(MANPAGES): $(top_srcdir)/VERSION \
47                 $(top_srcdir)/REVISION
48
49 pure: $(PROG).pure
50
51 $(PROG).pure: $(OBJS) $(XLIBS)
52         $(PURIFY) $(PURIFYCCFLAGS) \
53           $(LINK.cpp) -o $@ $(OBJS) $(XLIBS) $(LIBS) $(MLIB)
54
55 ########################################################################
56 # Emacs settings
57 ########################################################################
58 #
59 # Local Variables:
60 # mode: makefile
61 # End: