initial commit
[glsdk/libdri2.git] / src / Makefile.am
1 lib_LTLIBRARIES = libdri2.la
3 libdri2_la_SOURCES = \
4          dri2.c
6 libdri2_la_LIBADD = @DRI2_LIBS@
7 AM_CFLAGS = $(CWARNFLAGS) @DRI2_CFLAGS@ -I$(top_srcdir)/include @MALLOC_ZERO_CFLAGS@
9 libdri2_la_LDFLAGS = -version-number 1:0:0 -no-undefined
11 if LINT
12 ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
13                 $(AM_CPPFLAGS) $(CPPFLAGS)
15 lint:
16         $(LINT) $(ALL_LINT_FLAGS) $(libdri2_la_SOURCES) $(DRI2_LIBS)
17 endif LINT
19 if MAKE_LINT_LIB
20 lintlibdir = $(libdir)
22 lintlib_DATA = $(LINTLIB)
24 $(LINTLIB): $(libXau_la_SOURCES)
25         $(LINT) -y -oDRI2 -x $(ALL_LINT_FLAGS) $(libdri2_la_SOURCES)
27 CLEANFILES = $(LINTLIB)
28 endif MAKE_LINT_LIB