diff options
Diffstat (limited to 'Makefile.am')
| -rw-r--r-- | Makefile.am | 118 |
1 files changed, 64 insertions, 54 deletions
diff --git a/Makefile.am b/Makefile.am index 1f039e8..87a31e6 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -51,26 +51,13 @@ DEFS = -DLOCALEDIR="\"$(localedir)\"" @DEFS@ | |||
| 51 | 51 | ||
| 52 | 52 | ||
| 53 | # automake targets | 53 | # automake targets |
| 54 | bin_PROGRAMS = src/bindump \ | 54 | bin_PROGRAMS = |
| 55 | src/bitcopy \ | ||
| 56 | src/bitops \ | ||
| 57 | src/colors \ | ||
| 58 | src/dmsversion \ | ||
| 59 | src/macaddrinfo \ | ||
| 60 | src/netcalc \ | ||
| 61 | src/numconvert \ | ||
| 62 | src/typedef-info | ||
| 63 | include_HEADERS = include/dms.h \ | 55 | include_HEADERS = include/dms.h \ |
| 64 | include/dmsversion.h | 56 | include/dmsversion.h |
| 65 | lib_LTLIBRARIES = lib/libdms.la | 57 | lib_LTLIBRARIES = lib/libdms.la |
| 66 | noinst_PROGRAMS = | 58 | noinst_PROGRAMS = |
| 67 | noinst_HEADERS = src/common.h | 59 | noinst_HEADERS = src/common.h |
| 68 | man_MANS = doc/bitops.1 \ | 60 | man_MANS = |
| 69 | doc/bindump.1 \ | ||
| 70 | doc/codetagger.1 \ | ||
| 71 | doc/macaddrinfo.1 \ | ||
| 72 | doc/numconvert.1 \ | ||
| 73 | doc/posixregex.1 | ||
| 74 | 61 | ||
| 75 | 62 | ||
| 76 | # macros for lib/libotadm.la | 63 | # macros for lib/libotadm.la |
| @@ -91,104 +78,125 @@ lib_libdms_la_SOURCES = include/dms.h \ | |||
| 91 | # macros for src/bindump | 78 | # macros for src/bindump |
| 92 | src_bindump_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 79 | src_bindump_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 93 | src_bindump_CPPFLAGS = -DPROGRAM_NAME="\"bindump\"" $(AM_CPPFLAGS) | 80 | src_bindump_CPPFLAGS = -DPROGRAM_NAME="\"bindump\"" $(AM_CPPFLAGS) |
| 94 | src_bindump_SOURCES = $(noinst_HEADERS) \ | 81 | src_bindump_SOURCES = $(noinst_HEADERS) src/bindump.c |
| 95 | src/bindump.c | 82 | if WANT_BINDUMP |
| 83 | bin_PROGRAMS += src/bindump | ||
| 84 | man_MANS += doc/bindump.1 | ||
| 85 | endif | ||
| 96 | 86 | ||
| 97 | 87 | ||
| 98 | # macros for src/bitops | 88 | # macros for src/bitcopy |
| 99 | src_bitcopy_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 89 | src_bitcopy_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 100 | src_bitcopy_CPPFLAGS = -DPROGRAM_NAME="\"bitcopy\"" $(AM_CPPFLAGS) | 90 | src_bitcopy_CPPFLAGS = -DPROGRAM_NAME="\"bitcopy\"" $(AM_CPPFLAGS) |
| 101 | src_bitcopy_SOURCES = $(noinst_HEADERS) \ | 91 | src_bitcopy_SOURCES = $(noinst_HEADERS) src/bitcopy.c |
| 102 | src/bitcopy.c | 92 | if WANT_BITCOPY |
| 93 | bin_PROGRAMS += src/bitcopy | ||
| 94 | endif | ||
| 103 | 95 | ||
| 104 | 96 | ||
| 105 | # macros for src/bitops | 97 | # macros for src/bitops |
| 106 | src_bitops_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 98 | src_bitops_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 107 | src_bitops_CPPFLAGS = -DPROGRAM_NAME="\"bitops\"" $(AM_CPPFLAGS) | 99 | src_bitops_CPPFLAGS = -DPROGRAM_NAME="\"bitops\"" $(AM_CPPFLAGS) |
| 108 | src_bitops_SOURCES = $(noinst_HEADERS) \ | 100 | src_bitops_SOURCES = $(noinst_HEADERS) src/bitops.c |
| 109 | src/bitops.c | 101 | if WANT_BITOPS |
| 102 | bin_PROGRAMS += src/bitops | ||
| 103 | man_MANS += doc/bitops.1 | ||
| 104 | endif | ||
| 110 | 105 | ||
| 111 | 106 | ||
| 112 | # macros for src/codetagger | 107 | # macros for src/codetagger |
| 113 | src_codetagger_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 108 | src_codetagger_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 114 | src_codetagger_CPPFLAGS = -DPROGRAM_NAME="\"codetagger\"" $(AM_CPPFLAGS) | 109 | src_codetagger_CPPFLAGS = -DPROGRAM_NAME="\"codetagger\"" $(AM_CPPFLAGS) |
| 115 | src_codetagger_SOURCES = $(noinst_HEADERS) \ | 110 | src_codetagger_SOURCES = $(noinst_HEADERS) src/codetagger.c |
| 116 | src/codetagger.c | 111 | if WANT_CODETAGGER |
| 117 | if ! IS_WIN32 | 112 | bin_PROGRAMS += src/codetagger |
| 118 | bin_PROGRAMS += src/codetagger | 113 | man_MANS += doc/codetagger.1 |
| 119 | endif | 114 | endif |
| 120 | 115 | ||
| 121 | 116 | ||
| 122 | # macros for src/colors | 117 | # macros for src/colors |
| 123 | src_colors_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 118 | src_colors_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 124 | src_colors_CPPFLAGS = -DPROGRAM_NAME="\"colors\"" $(AM_CPPFLAGS) | 119 | src_colors_CPPFLAGS = -DPROGRAM_NAME="\"colors\"" $(AM_CPPFLAGS) |
| 125 | src_colors_SOURCES = $(noinst_HEADERS) \ | 120 | src_colors_SOURCES = $(noinst_HEADERS) src/colors.c |
| 126 | src/colors.c | 121 | if WANT_COLORS |
| 127 | 122 | bin_PROGRAMS += src/colors | |
| 128 | 123 | endif | |
| 129 | # macros for src/endian | ||
| 130 | src_endian_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | ||
| 131 | src_endian_CPPFLAGS = -DPROGRAM_NAME="\"endian\"" $(AM_CPPFLAGS) | ||
| 132 | src_endian_SOURCES = $(noinst_HEADERS) \ | ||
| 133 | src/endian.c | ||
| 134 | bin_PROGRAMS += src/endian | ||
| 135 | 124 | ||
| 136 | 125 | ||
| 137 | # macros for src/dmsversion | 126 | # macros for src/dmsversion |
| 138 | src_dmsversion_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 127 | src_dmsversion_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 139 | src_dmsversion_CPPFLAGS = -DPROGRAM_NAME="\"dmsversion\"" $(AM_CPPFLAGS) | 128 | src_dmsversion_CPPFLAGS = -DPROGRAM_NAME="\"dmsversion\"" $(AM_CPPFLAGS) |
| 140 | src_dmsversion_LDADD = $(AM_LDADD) lib/libdms.la | 129 | src_dmsversion_LDADD = $(AM_LDADD) lib/libdms.la |
| 141 | src_dmsversion_SOURCES = $(noinst_HEADERS) \ | 130 | src_dmsversion_SOURCES = $(noinst_HEADERS) src/dmsversion.c |
| 142 | src/dmsversion.c | 131 | if WANT_DMSVERSION |
| 132 | bin_PROGRAMS += src/dmsversion | ||
| 133 | endif | ||
| 134 | |||
| 143 | 135 | ||
| 136 | # macros for src/endian | ||
| 137 | src_endian_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | ||
| 138 | src_endian_CPPFLAGS = -DPROGRAM_NAME="\"endian\"" $(AM_CPPFLAGS) | ||
| 139 | src_endian_SOURCES = $(noinst_HEADERS) src/endian.c | ||
| 140 | if WANT_ENDIAN | ||
| 141 | bin_PROGRAMS += src/endian | ||
| 142 | endif | ||
| 144 | 143 | ||
| 145 | 144 | ||
| 146 | # macros for src/netcalc | 145 | # macros for src/netcalc |
| 147 | src_macaddrinfo_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 146 | src_macaddrinfo_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 148 | src_macaddrinfo_CPPFLAGS = -DPROGRAM_NAME="\"macaddrinfo\"" $(AM_CPPFLAGS) | 147 | src_macaddrinfo_CPPFLAGS = -DPROGRAM_NAME="\"macaddrinfo\"" $(AM_CPPFLAGS) |
| 149 | src_macaddrinfo_SOURCES = $(noinst_HEADERS) \ | 148 | src_macaddrinfo_SOURCES = $(noinst_HEADERS) src/macaddrinfo.c |
| 150 | src/macaddrinfo.c | 149 | if WANT_MACADDRINFO |
| 150 | bin_PROGRAMS += src/macaddrinfo | ||
| 151 | man_MANS += doc/macaddrinfo.1 | ||
| 152 | endif | ||
| 151 | 153 | ||
| 152 | 154 | ||
| 153 | # macros for src/netcalc | 155 | # macros for src/netcalc |
| 154 | src_netcalc_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 156 | src_netcalc_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 155 | src_netcalc_CPPFLAGS = -DPROGRAM_NAME="\"netcalc\"" $(AM_CPPFLAGS) | 157 | src_netcalc_CPPFLAGS = -DPROGRAM_NAME="\"netcalc\"" $(AM_CPPFLAGS) |
| 156 | src_netcalc_SOURCES = $(noinst_HEADERS) \ | 158 | src_netcalc_SOURCES = $(noinst_HEADERS) src/netcalc.c |
| 157 | src/netcalc.c | 159 | if WANT_NETCALC |
| 160 | bin_PROGRAMS += src/netcalc | ||
| 161 | endif | ||
| 158 | 162 | ||
| 159 | 163 | ||
| 160 | # macros for src/numconvert | 164 | # macros for src/numconvert |
| 161 | src_numconvert_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 165 | src_numconvert_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 162 | src_numconvert_CPPFLAGS = -DPROGRAM_NAME="\"numconvert\"" $(AM_CPPFLAGS) | 166 | src_numconvert_CPPFLAGS = -DPROGRAM_NAME="\"numconvert\"" $(AM_CPPFLAGS) |
| 163 | src_numconvert_SOURCES = $(noinst_HEADERS) \ | 167 | src_numconvert_SOURCES = $(noinst_HEADERS) src/numconvert.c |
| 164 | src/numconvert.c | 168 | if WANT_NUMCONVERT |
| 169 | bin_PROGRAMS += src/numconvert | ||
| 170 | man_MANS += doc/numconvert.1 | ||
| 171 | endif | ||
| 165 | 172 | ||
| 166 | 173 | ||
| 167 | # macros for src/posixregex | 174 | # macros for src/posixregex |
| 168 | src_posixregex_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 175 | src_posixregex_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 169 | src_posixregex_CPPFLAGS = -DPROGRAM_NAME="\"posixregex\"" $(AM_CPPFLAGS) | 176 | src_posixregex_CPPFLAGS = -DPROGRAM_NAME="\"posixregex\"" $(AM_CPPFLAGS) |
| 170 | src_posixregex_SOURCES = $(noinst_HEADERS) \ | 177 | src_posixregex_SOURCES = $(noinst_HEADERS) src/posixregex.c |
| 171 | src/posixregex.c | 178 | if WANT_POSIXREGEX |
| 172 | if HAVE_REGEX | 179 | bin_PROGRAMS += src/posixregex |
| 173 | bin_PROGRAMS += src/posixregex | 180 | man_MANS += doc/posixregex.1 |
| 174 | endif | 181 | endif |
| 175 | 182 | ||
| 176 | 183 | ||
| 177 | # macros for src/suicide | 184 | # macros for src/suicide |
| 178 | src_suicide_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 185 | src_suicide_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 179 | src_suicide_CPPFLAGS = -DPROGRAM_NAME="\"suicide\"" $(AM_CPPFLAGS) | 186 | src_suicide_CPPFLAGS = -DPROGRAM_NAME="\"suicide\"" $(AM_CPPFLAGS) |
| 180 | src_suicide_SOURCES = $(noinst_HEADERS) \ | 187 | src_suicide_SOURCES = $(noinst_HEADERS) src/suicide.c |
| 181 | src/suicide.c | 188 | if WANT_SUICIDE |
| 182 | if HAVE_SIGNAL | 189 | bin_PROGRAMS += src/suicide |
| 183 | bin_PROGRAMS += src/suicide | ||
| 184 | endif | 190 | endif |
| 185 | 191 | ||
| 186 | 192 | ||
| 187 | # macros for src/typedef-info | 193 | # macros for src/typedef-info |
| 188 | src_typedef_info_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile | 194 | src_typedef_info_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile |
| 189 | src_typedef_info_CPPFLAGS = -DPROGRAM_NAME="\"typedef-info\"" $(AM_CPPFLAGS) | 195 | src_typedef_info_CPPFLAGS = -DPROGRAM_NAME="\"typedef-info\"" $(AM_CPPFLAGS) |
| 190 | src_typedef_info_SOURCES = $(noinst_HEADERS) \ | 196 | src_typedef_info_SOURCES = $(noinst_HEADERS) src/typedef-info.c |
| 191 | src/typedef-info.c | 197 | if WANT_TYPEDEF_INFO |
| 198 | bin_PROGRAMS += src/typedef-info | ||
| 199 | endif | ||
| 192 | 200 | ||
| 193 | 201 | ||
| 194 | # lists | 202 | # lists |
| @@ -228,6 +236,8 @@ CLEANFILES = \ | |||
| 228 | include/dmsversion.h \ | 236 | include/dmsversion.h \ |
| 229 | @PACKAGE_TARNAME@-*.tar.* \ | 237 | @PACKAGE_TARNAME@-*.tar.* \ |
| 230 | @PACKAGE_TARNAME@-*.zip | 238 | @PACKAGE_TARNAME@-*.zip |
| 239 | DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings \ | ||
| 240 | --enable-all | ||
| 231 | 241 | ||
| 232 | 242 | ||
| 233 | # Makefile includes | 243 | # Makefile includes |
