chiark / gitweb /
checkpath.c: Move the message buffer into the state structure.
[checkpath] / Makefile.am
1 ### -*-makefile-*-
2 ###
3 ### Makefile for chkpath
4 ###
5 ### (c) 1999 Mark Wooding
6 ###
7
8 ###----- Licensing notice ---------------------------------------------------
9 ###
10 ### This file is part of chkpath.
11 ###
12 ### chkpath is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU General Public License as published by
14 ### the Free Software Foundation; either version 2 of the License, or
15 ### (at your option) any later version.
16 ###
17 ### chkpath is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 ### GNU General Public License for more details.
21 ###
22 ### You should have received a copy of the GNU General Public License
23 ### along with chkpath; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 ACLOCAL_AMFLAGS          = -Im4
27
28 bin_PROGRAMS             =
29 lib_LTLIBRARIES          =
30 noinst_LIBRARIES         =
31 include_HEADERS          =
32 dist_man_MANS            =
33
34 CLEANFILES               =
35 EXTRA_DIST               =
36 LDADD                    =
37
38 ###--------------------------------------------------------------------------
39 ### Programs.
40
41 ## Common stuff.
42 noinst_LIBRARIES        += libutils.a
43 libutils_a_SOURCES       =
44 LDADD                   += libutils.a
45
46 libutils_a_SOURCES      += utils.c
47 libutils_a_SOURCES      += utils.h
48
49 ## chkpath
50 bin_PROGRAMS            += chkpath
51 dist_man_MANS           += chkpath.1
52
53 ## tmpdir
54 bin_PROGRAMS            += tmpdir
55 dist_man_MANS           += tmpdir.1
56
57 ###--------------------------------------------------------------------------
58 ### Library.
59
60 ## The library itself.
61 lib_LTLIBRARIES         += libcheckpath.la
62 libcheckpath_la_SOURCES  =
63 libcheckpath_la_LDFLAGS  = -version-info $(LIBTOOL_VERSION_INFO)
64 libcheckpath_la_LIBADD   = $(mLib_LIBS)
65 dist_man_MANS           += checkpath.3
66 LDADD                   += libcheckpath.la
67
68 libcheckpath_la_SOURCES += checkpath.c
69 include_HEADERS         += checkpath.h
70
71 ## Package description.
72 pkgconfigdir             = $(libdir)/pkgconfig
73 pkgconfig_DATA           = checkpath.pc
74 CLEANFILES              += checkpath.pc
75 EXTRA_DIST              += checkpath.pc.in
76
77 checkpath.pc: checkpath.pc.in Makefile
78         $(AM_V_GEN)$(top_srcdir)/config/confsubst \
79                 $(srcdir)/checkpath.pc.in >$@.new \
80                 prefix=$(prefix) exec_prefix=$(exec_prefix) \
81                 libdir=$(libdir) includedir=$(includedir) \
82                 VERSION=$(VERSION) && mv $@.new $@
83
84 ###--------------------------------------------------------------------------
85 ### Other finishing touches.
86
87 ## Version stamp.
88 dist-hook::
89         echo $(VERSION) >$(distdir)/RELEASE
90
91 ## Build tools.
92 EXTRA_DIST              += config/auto-version
93 EXTRA_DIST              += config/confsubst
94
95 ## External libraries.
96 LDADD                   += $(mLib_LIBS)
97
98 ###--------------------------------------------------------------------------
99 ### Debian.
100
101 ## Main stuff.
102 EXTRA_DIST              += debian/rules
103 EXTRA_DIST              += debian/copyright
104 EXTRA_DIST              += debian/control
105 EXTRA_DIST              += debian/changelog
106 EXTRA_DIST              += debian/compat
107 EXTRA_DIST              += debian/source/format
108
109 ## Library.
110 EXTRA_DIST              += debian/libcheckpath1.install
111 EXTRA_DIST              += debian/libcheckpath1.shlibs
112 EXTRA_DIST              += debian/libcheckpath1.symbols
113 EXTRA_DIST              += debian/libcheckpath-dev.install
114
115 ## Binaries.
116 EXTRA_DIST              += debian/tmpdir.install
117 EXTRA_DIST              += debian/chkpath.install
118
119 ###----- That's all, folks --------------------------------------------------