File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
AM_CFLAGS = $(WARN_CFLAGS ) -I$(top_srcdir ) -I$(top_srcdir ) /include
2
2
3
- bin_PROGRAMS = planes render grab
3
+ bin_PROGRAMS = planes
4
+
5
+ if ENABLE_EXAMPLES
6
+ bin_PROGRAMS += render grab
4
7
5
8
if HAVE_DIRECTFB
6
9
bin_PROGRAMS += dfblayers
7
10
endif
11
+ endif
8
12
9
13
planes_SOURCES = planes.c
10
14
planes_CFLAGS = $(AM_CFLAGS ) $(LIBDRM_CFLAGS ) $(CAIRO_CFLAGS )
11
15
planes_LDADD = $(top_builddir ) /src/libplanes.la $(LIBDRM_LIBS ) $(CAIRO_LIBS )
12
16
planesdir = $(prefix ) /share/planes
17
+ if ENABLE_EXAMPLES
13
18
planes_DATA = $(wildcard $(top_srcdir ) /configs/* .png) \
14
19
$(wildcard $(top_srcdir ) /configs/* .config)
20
+ endif
15
21
planes_LDFLAGS = $(AM_LDFLAGS )
16
22
17
23
render_SOURCES = render.c
Original file line number Diff line number Diff line change @@ -137,6 +137,11 @@ if test "x$PYTHON" = xyes; then
137
137
fi
138
138
AM_CONDITIONAL(HAVE_PYTHON, [ test "x$have_python" = xyes] )
139
139
140
+ AC_ARG_ENABLE ( [ examples] ,
141
+ [ AS_HELP_STRING ( [ --enable-examples] , [ build examples [ default=yes] ] ) ] ,
142
+ [ enable_examples=$enableval] , [ enable_examples=yes] )
143
+ AM_CONDITIONAL([ ENABLE_EXAMPLES] , [ test "x${enable_examples}" = xyes] )
144
+
140
145
AC_USE_SYSTEM_EXTENSIONS
141
146
AC_SYS_LARGEFILE
142
147
AC_FUNC_ALLOCA
You can’t perform that action at this time.
0 commit comments