summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2022-12-29 12:28:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2022-12-29 12:28:42 (GMT)
commit755acfaa09e08a355b29081b75f9d547d264ce53 (patch)
treea6333a192603d572fc3d51c9ca94d274acbf0bb6 /src/common
parent41db261acccf3494aa93b71a181cde9e8605a841 (diff)
Refactor Makefiles to exclude cURL on demand.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/Makefile.am16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/common/Makefile.am b/src/common/Makefile.am
index 9a8fdf2..638eee0 100644
--- a/src/common/Makefile.am
+++ b/src/common/Makefile.am
@@ -9,7 +9,6 @@ libcommon_la_SOURCES = \
bits.h bits.c \
compression.h compression.c \
cpp.h \
- curl.h curl.c \
dllist.h dllist.c \
endianness.h endianness.c \
environment.h environment.c \
@@ -31,7 +30,20 @@ libcommon_la_SOURCES = \
xdg.h xdg.c \
xml.h xml.c
-libcommon_la_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS) $(LIBCURL_CFLAGS)
+if BUILD_CURL_SUPPORT
+
+libcommon_la_SOURCES += \
+ curl.h curl.c
+
+endif
+
+libcommon_la_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS)
+
+if BUILD_CURL_SUPPORT
+
+libcommon_la_CFLAGS += $(LIBCURL_CFLAGS)
+
+endif
devdir = $(includedir)/chrysalide/$(subdir:src/%=core/%)