summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorChristian Wright <christian.wright@virscient.com>2018-09-12 11:33:58 +1200
committerChristian Wright <christian.wright@virscient.com>2018-09-12 11:40:41 +1200
commitb92b2a5b7b65e586426ecf6f086ee98b0dd52efb (patch)
tree71cd7d8efdcac3d6632a3d38aeb7748ef5d391cc /Makefile.am
parent899b19a63e494007da7cc11c9c61b50f148827d3 (diff)
disable-programs switch fixed
The SUBDIRS variable in Makefile.am forces make to always compile the examples, regardless of the disable-programs switch. Fixed so that it programs is added conditionally based on the argument to configure.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index e9e17e2..4bd998f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,7 +28,11 @@
# SUCH DAMAGE.
#
-SUBDIRS = usrsctplib programs
+if COND_PROGRAMS
+MAYBEPROGRAMS = programs
+endif
+
+SUBDIRS = usrsctplib $(MAYBEPROGRAMS)
EXTRA_DIST = bootstrap Makefile.nmake
ACLOCAL_AMFLAGS = -I m4
# pkgconfig_DATA = usrsctp.pc