summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: aa923b1823ab4bc8deb8ea7ecb4553b9487b575f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
AM_CFLAGS = -I$(top_srcdir)/include \
            -I$(top_srcdir)/include/X11 \
            -I$(top_srcdir)/include/X11/extensions \
            $(XSCRNSAVER_CFLAGS) \
            $(MALLOC_ZERO_CFLAGS) \
            $(CWARNFLAGS)

lib_LTLIBRARIES = libXss.la

libXss_la_SOURCES = \
         XScrnSaver.c

libXss_la_LIBADD = $(XSCRNSAVER_LIBS)

libXss_la_LDFLAGS = -version-info 1:0:0 -no-undefined

libXScrnSaverincludedir = $(includedir)/X11/extensions
libXScrnSaverinclude_HEADERS = $(top_srcdir)/include/X11/extensions/scrnsaver.h

if LINT
ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
		$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)

lint:
	$(LINT) $(ALL_LINT_FLAGS) $(libXss_la_SOURCES)
endif LINT

if MAKE_LINT_LIB
lintlibdir = $(libdir)

lintlib_DATA = $(LINTLIB)

$(LINTLIB): $(libXss_la_SOURCES)
	$(LINT) -y -oXss -x $(ALL_LINT_FLAGS) $(libXss_la_SOURCES)
endif MAKE_LINT_LIB