summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am8
-rw-r--r--src/common/Makefile.am16
2 files changed, 21 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 55a8f05..8f746d6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -46,7 +46,13 @@ libchrysacore_la_LDFLAGS = \
-avoid-version -ldl \
$(TOOLKIT_LIBS) $(LIBXML_LIBS) \
$(LIBSQLITE_LIBS) $(LIBARCHIVE_LIBS) \
- $(LIBCURL_LIBS)
+ $(LIBSSL_LIBS)
+
+if BUILD_CURL_SUPPORT
+
+libchrysacore_la_LDFLAGS += $(LIBCURL_LIBS)
+
+endif
libchrysacore_la_LIBADD = \
analysis/libanalysis.la \
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/%)