Fix: Don't override user variables within the build system
[babeltrace.git] / plugins / ctf / fs-sink / Makefile.am
index 62f771129e2ead0513913ca889bd00800580f2d4..68c12aa576d182c670a9a95c98c7035b28a1c1ad 100644 (file)
@@ -1,8 +1,12 @@
-AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include -I$(top_srcdir)/plugins \
+AM_CPPFLAGS += -I$(top_srcdir)/plugins \
        -I$(top_srcdir)/plugins/libctfcopytrace
 
 noinst_LTLIBRARIES = libbabeltrace-plugin-ctf-writer.la
 
-libbabeltrace_plugin_ctf_writer_la_LIBADD = \
-       $(top_builddir)/plugins/libctfcopytrace/libctfcopytrace.la
+libbabeltrace_plugin_ctf_writer_la_LIBADD =
 libbabeltrace_plugin_ctf_writer_la_SOURCES = writer.c writer.h write.c
+
+if !BUILT_IN_PLUGINS
+libbabeltrace_plugin_ctf_writer_la_LIBADD += \
+       $(top_builddir)/plugins/libctfcopytrace/libctfcopytrace.la
+endif
This page took 0.023681 seconds and 4 git commands to generate.