summaryrefslogtreecommitdiff
path: root/wrapper/Makefile.am
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-03-05 11:18:21 -0500
committerGaetan Nadon <memsize@videotron.ca>2011-03-07 10:49:51 -0500
commita37fab2dde1cb4ea0fb93ed811b14b2be9e52566 (patch)
tree52f4ee93a489be30783441bb612a7c5f18c54286 /wrapper/Makefile.am
parent3b4040904d8fd5b8c7a20b0b187d70a00dd452ef (diff)
config: move wrapper in its own directory
This prevents the use of per-target compiler flags. Makefiles are simpler. The -D flags for the wrapper are moved with pre-precessor flags. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'wrapper/Makefile.am')
-rw-r--r--wrapper/Makefile.am22
1 files changed, 22 insertions, 0 deletions
diff --git a/wrapper/Makefile.am b/wrapper/Makefile.am
new file mode 100644
index 0000000..b3a1c21
--- /dev/null
+++ b/wrapper/Makefile.am
@@ -0,0 +1,22 @@
+lib_LTLIBRARIES = libXvMCW.la
+
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/include \
+ $(MALLOC_ZERO_CFLAGS) \
+ -DXVMC_CONFIGDIR=$(sysconfdir)/X11 \
+ -DXVMC_SOVERSION=\".1.0\" \
+ -DXV_SOVERSION=\".1.0\"
+
+AM_CFLAGS = $(CWARNFLAGS) $(XVMC_CFLAGS)
+
+libXvMCW_la_SOURCES = XvMCWrapper.c
+libXvMCW_la_LIBADD = $(XVMC_LIBS)
+libXvMCW_la_LDFLAGS = -version-number 1:0:0 -no-undefined
+
+if LINT
+ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS)
+
+lint:
+ $(LINT) $(ALL_LINT_FLAGS) $(libXvMCW_la_SOURCES) $(AM_CFLAGS) $(XVMC_LIBS)
+endif LINT