aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2021-10-11 14:38:00 -0800
committerDavid M. Syzdek <david@syzdek.net>2021-10-11 14:38:00 -0800
commit4d07591e3a9281553d28848b10e147b93bfed7e9 (patch)
tree46d822b58dffca878bb2efc2fa9ad2d60c46bfcd
parent5363018e73fec948032c802635e697aebd22d76c (diff)
downloaddmstools-4d07591e3a9281553d28848b10e147b93bfed7e9.tar.gz
dmstools-4d07591e3a9281553d28848b10e147b93bfed7e9.tar.bz2
dmstools-4d07591e3a9281553d28848b10e147b93bfed7e9.tar.xz
dmstools-4d07591e3a9281553d28848b10e147b93bfed7e9.zip
autotools: cleaning up Makefile
-rw-r--r--Makefile.am115
1 files changed, 69 insertions, 46 deletions
diff --git a/Makefile.am b/Makefile.am
index 87a31e6..82adaa7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -42,11 +42,15 @@ DIST_SUBDIRS =
42# Global flags 42# Global flags
43AM_LIBS = 43AM_LIBS =
44AM_LDFLAGS = 44AM_LDFLAGS =
45AM_CFLAGS = -O2 -W -Wall -Werror $(CFLAGS_WARNINGS) 45AM_CFLAGS = -O2 $(CFLAGS_WARNINGS)
46AM_CXXFLAGS = -O2 -W -Wall -Werror 46AM_CXXFLAGS = -O2 @AM_CXXFLAGS@
47AM_OBJCFLAGS = -O2 -W -Wall -Werror 47AM_OBJCFLAGS = -O2 @AM_OBJCFLAGS@
48AM_CPPFLAGS = -O2 -W -Wall -Werror -DHAVE_COMMON_H=1 -I$(top_builddir)/include -I$(top_srcdir)/include 48AM_CPPFLAGS = -O2 \
49ACLOCAL_AMFLAGS = -I m4 -I contrib/bindletools/m4 -W all -W error 49 -DHAVE_CONFIG_H=1 \
50 -DHAVE_COMMON_H=1 \
51 -I$(top_builddir)/include \
52 -I$(top_srcdir)/include
53ACLOCAL_AMFLAGS = -I m4 -W all -W error
50DEFS = -DLOCALEDIR="\"$(localedir)\"" @DEFS@ 54DEFS = -DLOCALEDIR="\"$(localedir)\"" @DEFS@
51 55
52 56
@@ -58,6 +62,20 @@ lib_LTLIBRARIES = lib/libdms.la
58noinst_PROGRAMS = 62noinst_PROGRAMS =
59noinst_HEADERS = src/common.h 63noinst_HEADERS = src/common.h
60man_MANS = 64man_MANS =
65EXTRA = src/bindump \
66 src/bitcopy \
67 src/bitops \
68 src/codetagger \
69 src/colors \
70 src/dmsversion \
71 src/endian \
72 src/macaddrinfo \
73 src/netcalc \
74 src/numconvert \
75 src/posixregex \
76 src/recurse \
77 src/suicide \
78 src/typedef-info
61 79
62 80
63# macros for lib/libotadm.la 81# macros for lib/libotadm.la
@@ -75,6 +93,49 @@ lib_libdms_la_SOURCES = include/dms.h \
75 lib/libdms_version.h 93 lib/libdms_version.h
76 94
77 95
96# lists
97AM_INSTALLCHECK_STD_OPTIONS_EXEMPT =
98BUILT_SOURCES = include/dmsversion.h
99TESTS =
100XFAIL_TESTS =
101EXTRA_MANS =
102EXTRA_DIST = autogen.sh \
103 build-aux/git-tar-name.txt \
104 doc/bindump.1.in \
105 doc/bitops.1.in \
106 doc/macaddrinfo.1.in \
107 doc/numconvert.1.in \
108 doc/posixregex.1.in \
109 include/dmsversion.h.in \
110 lib/libdms.sym \
111 m4/dmstools_gcc.m4 \
112 m4/dmstools_git.m4 \
113 $(srcdir)/build-aux/dmstools.tags \
114 $(srcdir)/doc/Doxyfile \
115 $(srcdir)/doc/codetagger.1.in \
116 $(srcdir)/examples/Makefile \
117 $(srcdir)/examples/example-c.tags \
118 $(srcdir)/examples/example-defaults.tags \
119 $(srcdir)/examples/example-html.tags \
120 $(srcdir)/examples/example.c \
121 $(srcdir)/examples/example.html \
122 $(srcdir)/examples/example.txt \
123 $(srcdir)/build-aux/Makefile-xcode \
124 $(srcdir)/dmstools.xcodeproj/project.pbxproj
125CLEANFILES = \
126 $(builddir)/a.out $(srcdir)/a.out \
127 $(builddir)/*/a.out $(srcdir)/*/a.out \
128 autoscan.log $(srcdir)/autoscan.log \
129 config.h.in~ $(srcdir)/config.h.in~ \
130 configure.scan $(srcdir)/configure.scan \
131 $(man_MANS) \
132 include/dmsversion.h \
133 @PACKAGE_TARNAME@-*.tar.* \
134 @PACKAGE_TARNAME@-*.zip
135DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings \
136 --enable-all
137
138
78# macros for src/bindump 139# macros for src/bindump
79src_bindump_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile 140src_bindump_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile
80src_bindump_CPPFLAGS = -DPROGRAM_NAME="\"bindump\"" $(AM_CPPFLAGS) 141src_bindump_CPPFLAGS = -DPROGRAM_NAME="\"bindump\"" $(AM_CPPFLAGS)
@@ -199,47 +260,6 @@ if WANT_TYPEDEF_INFO
199endif 260endif
200 261
201 262
202# lists
203BUILT_SOURCES = include/dmsversion.h
204TESTS =
205XFAIL_TESTS =
206EXTRA_DIST = autogen.sh \
207 build-aux/git-tar-name.txt \
208 doc/bindump.1.in \
209 doc/bitops.1.in \
210 doc/macaddrinfo.1.in \
211 doc/numconvert.1.in \
212 doc/posixregex.1.in \
213 include/dmsversion.h.in \
214 lib/libdms.sym \
215 m4/dmstools_gcc.m4 \
216 m4/dmstools_git.m4 \
217 $(srcdir)/build-aux/dmstools.tags \
218 $(srcdir)/doc/Doxyfile \
219 $(srcdir)/doc/codetagger.1.in \
220 $(srcdir)/examples/Makefile \
221 $(srcdir)/examples/example-c.tags \
222 $(srcdir)/examples/example-defaults.tags \
223 $(srcdir)/examples/example-html.tags \
224 $(srcdir)/examples/example.c \
225 $(srcdir)/examples/example.html \
226 $(srcdir)/examples/example.txt \
227 $(srcdir)/build-aux/Makefile-xcode \
228 $(srcdir)/dmstools.xcodeproj/project.pbxproj
229CLEANFILES = \
230 $(builddir)/a.out $(srcdir)/a.out \
231 $(builddir)/*/a.out $(srcdir)/*/a.out \
232 autoscan.log $(srcdir)/autoscan.log \
233 config.h.in~ $(srcdir)/config.h.in~ \
234 configure.scan $(srcdir)/configure.scan \
235 $(man_MANS) \
236 include/dmsversion.h \
237 @PACKAGE_TARNAME@-*.tar.* \
238 @PACKAGE_TARNAME@-*.zip
239DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings \
240 --enable-all
241
242
243# Makefile includes 263# Makefile includes
244GIT_PACKAGE_VERSION_DIR=include 264GIT_PACKAGE_VERSION_DIR=include
245SUBST_EXPRESSIONS = \ 265SUBST_EXPRESSIONS = \
@@ -249,6 +269,7 @@ include $(srcdir)/contrib/bindletools/build-aux/makefile-autotools.am
249include $(srcdir)/contrib/bindletools/build-aux/makefile-subst.am 269include $(srcdir)/contrib/bindletools/build-aux/makefile-subst.am
250include $(srcdir)/contrib/bindletools/build-aux/makefile-version.am 270include $(srcdir)/contrib/bindletools/build-aux/makefile-version.am
251 271
272
252# custom targets 273# custom targets
253PHONY: 274PHONY:
254 275
@@ -280,6 +301,8 @@ install-exec-local:
280 301
281install-data-local: 302install-data-local:
282 303
304install-data-hook:
305
283uninstall-local: 306uninstall-local:
284 307
285clean-local: 308clean-local: