summaryrefslogtreecommitdiff
path: root/Makefile.shared
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.shared')
-rw-r--r--Makefile.shared15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.shared b/Makefile.shared
new file mode 100644
index 0000000..1f1e105
--- /dev/null
+++ b/Makefile.shared
@@ -0,0 +1,15 @@
+# Common CFLAGS for Argyll components
+
+AM_CFLAGS = -D_GNU_SOURCE -DUNIX -DENABLE_USB -DENABLE_SERIAL -I$(top_srcdir)/cgats \
+ -I$(top_srcdir)/gamut -I$(top_srcdir)/h -I$(top_srcdir)/jcnf \
+ -I$(top_srcdir)/libusb1/libusb -I$(top_srcdir)/numlib \
+ -I$(top_srcdir)/plot -I$(top_srcdir)/profile -I$(top_srcdir)/render \
+ -I$(top_srcdir)/rspl -I$(top_srcdir)/spectro -I$(top_srcdir)/target \
+ -I$(top_srcdir)/ucmm -I$(top_srcdir)/xicc $(TIFF_CFLAGS) $(ICC_CFLAGS) \
+ $(YAJL_CFLAGS) -L$(top_srcdir)/spectro
+
+# Build libs in other dirs when required
+../%.la:
+ $(MAKE) -C $(@D) $(@F)
+./%.la:
+ $(MAKE) -C $(@D) $(@F)