summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 86572b667a169530f82baab4d0a9a6a5a5c3d394 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
EXTRA_DIST =
CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory

AM_CPPFLAGS = \
	-include $(top_builddir)/config.h \
	-DSYSCONFDIR=\""$(sysconfdir)"\" \
	-DLIBEXECDIR=\""$(libexecdir)"\" \
	-I${top_srcdir}/src/kmsfbwrap \
	-I${top_srcdir}/src \
	$(DRM_CFLAGS) \
	$(FUSE_CFLAGS) \
	$(LIBPNG_CFLAGS)

AM_CFLAGS = ${my_CFLAGS} \
	-fvisibility=hidden \
	-ffunction-sections \
	-fdata-sections

AM_LDFLAGS = \
	-Wl,--gc-sections \
	-Wl,--as-needed

SED_PROCESS = \
	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
	-e 's,@VERSION\@,$(VERSION),g' \
	-e 's,@prefix\@,$(prefix),g' \
	-e 's,@exec_prefix\@,$(exec_prefix),g' \
	-e 's,@libdir\@,$(libdir),g' \
	-e 's,@includedir\@,$(includedir),g' \
	< $< > $@ || rm $@

%.pc: %.pc.in Makefile
	$(SED_PROCESS)

bin_PROGRAMS = kmsfb-manage

kmsfb_manage_SOURCES = \
	src/png.c \
	src/kmsfb-manage.c \
	src/bgi.c

kmsfb_manage_LDADD = \
	$(FUSE_LIBS) \
	$(DRM_LIBS) \
	$(LIBPNG_LIBS)

noinst_HEADERS = \
	src/drm_fourcc_rgb_a.h \
	src/kmsfb.h