2 ## Ion xinerama module Makefile
6 # System specific configuration is in system.mk
8 include $(TOPDIR
)/build
/system-inc.mk
10 ######################################
12 INCLUDES
+= $(LIBTU_INCLUDES
) $(LIBEXTL_INCLUDES
) $(X11_INCLUDES
) -I
$(TOPDIR
)
13 CFLAGS
+= $(XOPEN_SOURCE
) $(C99_SOURCE
)
16 SOURCES
=mod_xinerama.c
18 MAKE_EXPORTS
=mod_xinerama
19 LIBS
= -L
/usr
/lib
/x86_64-linux-gnu
$(X11_LIBS
) -lXinerama
21 MODULE_STUB
=mod_xinerama.lua
23 ######################################
25 include $(TOPDIR
)/build
/rules.mk
27 ######################################
29 _install
: module_install
30 $(INSTALLDIR
) $(DESTDIR
)$(ETCDIR
)
32 $(INSTALL
) -m
$(DATA_MODE
) $$i $(DESTDIR
)$(ETCDIR
); \
35 ######################################
38 tarball
: $(SOURCES
) $(ETC
) $(DOCS
) $(MODULE_STUB
) Makefile
39 sh
-c
'BASENAME=ion-devel-$(MODULE)-`date -r \`ls -t $+ | head -n 1\` +%Y%m%d`; \
42 tar -cvjf $$BASENAME.tar.bz2 $$BASENAME/*; \
49 ######################################
53 exuberant-ctags
-R .
$(TOPDIR
)
55 mod_xinerama.o
: exports.h
57 ################ ls_xinerama utility ###############
59 ls_xinerama
: ls_xinerama.c
60 $(CC
) ls_xinerama.c
-o ls_xinerama
-Wl
,--as-needed
-lX11
-lXinerama