summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorRob Clark <rob.clark@linaro.org>2011-09-22 02:51:49 +0400
committerRob Clark <rob.clark@linaro.org>2011-09-22 03:07:09 +0400
commita6fc28ca6452fc5018a377da14c4573f22696af8 (patch)
tree4747c657454af6b4d6d12064db7afe4f4ebe7e2c /src/Makefile.am
downloadlibdri2-a6fc28ca6452fc5018a377da14c4573f22696af8.tar.xz
initial commit
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..07f2492
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,28 @@
+lib_LTLIBRARIES = libdri2.la
+
+libdri2_la_SOURCES = \
+ dri2.c
+
+libdri2_la_LIBADD = @DRI2_LIBS@
+AM_CFLAGS = $(CWARNFLAGS) @DRI2_CFLAGS@ -I$(top_srcdir)/include @MALLOC_ZERO_CFLAGS@
+
+libdri2_la_LDFLAGS = -version-number 1:0:0 -no-undefined
+
+if LINT
+ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS)
+
+lint:
+ $(LINT) $(ALL_LINT_FLAGS) $(libdri2_la_SOURCES) $(DRI2_LIBS)
+endif LINT
+
+if MAKE_LINT_LIB
+lintlibdir = $(libdir)
+
+lintlib_DATA = $(LINTLIB)
+
+$(LINTLIB): $(libXau_la_SOURCES)
+ $(LINT) -y -oDRI2 -x $(ALL_LINT_FLAGS) $(libdri2_la_SOURCES)
+
+CLEANFILES = $(LINTLIB)
+endif MAKE_LINT_LIB