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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
|
#
# XWiimote - makefile
# Written by David Herrmann, 2011-2013
# Dedicated to the Public Domain
#
#
# Library Version Numbers
#
LIBXWIIMOTE_CURRENT = 2
LIBXWIIMOTE_REVISION = 0
LIBXWIIMOTE_AGE = 0
#
# miscellaneous
#
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
AUTOMAKE_OPTIONS = color-tests
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-debug
SUBDIRS = .
.DELETE_ON_ERROR:
#
# Distribution includes
#
EXTRA_DIST = \
README \
COPYING \
DEV \
LICENSE \
res/50-xorg-fix-xwiimote.conf \
libxwiimote.sym
#
# Build targets
#
lib_LTLIBRARIES = libxwiimote.la
bin_PROGRAMS = xwiishow
noinst_PROGRAMS = xwiidump
include_HEADERS = lib/xwiimote.h
man_MANS = \
doc/xwiimote.7 \
doc/libxwiimote.7 \
doc/xwiishow.1
EXTRA_DIST += $(man_MANS)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libxwiimote.pc
EXTRA_DIST += \
$(pkgconfig_DATA) \
libxwiimote.pc.in
#
# Default c/l-flags
#
AM_CFLAGS = \
-Wall \
-pipe \
-fno-common \
-ffast-math \
-fdiagnostics-show-option \
-fno-strict-aliasing \
-fvisibility=hidden \
-ffunction-sections \
-fdata-sections \
-fstack-protector
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-I $(srcdir)/lib \
-D'XWII__EXPORT=__attribute__((visibility("default")))'
AM_LDFLAGS = \
-Wall \
-Wl,--as-needed \
-Wl,--gc-sections \
-Wl,-z,relro \
-Wl,-z,now
if DEBUG
AM_CFLAGS += -O0 -g
else
AM_CFLAGS += -O2
endif
#
# libxwiimote
#
libxwiimote_la_SOURCES = \
lib/xwiimote.h \
lib/core.c \
lib/monitor.c
EXTRA_libxwiimote_la_DEPENDENCIES = ${top_srcdir}/libxwiimote.sym
libxwiimote_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(UDEV_CFLAGS)
libxwiimote_la_LIBADD = \
$(AM_LIBADD) \
$(UDEV_LIBS)
libxwiimote_la_LDFLAGS = \
$(AM_LDFLAGS) \
-version-info $(LIBXWIIMOTE_CURRENT):$(LIBXWIIMOTE_REVISION):$(LIBXWIIMOTE_AGE) \
-Wl,--version-script=$(top_srcdir)/libxwiimote.sym
#
# xwiishow
#
xwiishow_SOURCES = \
tools/xwiishow.c
xwiishow_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(NCURSES_CFLAGS)
xwiishow_LDADD = \
$(NCURSES_LIBS) \
libxwiimote.la \
-lm
xwiishow_LDFLAGS = \
$(AM_LDFLAGS)
#
# xwiidump
#
xwiidump_SOURCES = \
tools/xwiidump.c
xwiidump_CPPFLAGS = \
$(AM_CPPFLAGS)
xwiidump_LDFLAGS = \
$(AM_LDFLAGS)
#
# doxygen
#
if HAVE_DOXYGEN
doc: doc/stamp-doxygen
clean-doc: clean-doxygen
all-local:: doc
clean-local:: clean-doc
doc/stamp-doxygen: $(top_srcdir)/lib/xwiimote.h
$(AM_V_GEN)$(DOXYGEN) doc/Doxyfile
$(AM_V_at)touch $@
clean-doxygen:
$(AM_V_at)rm -vrf doc/html doc/stamp-doxygen
install-data-local:: doc
$(MKDIR_P) $(DESTDIR)$(htmldir)
$(INSTALL_DATA) doc/html/* $(DESTDIR)$(htmldir)
uninstall-local::
rm -rf $(DESTDIR)$(htmldir)
endif # HAVE_DOXYGEN
|