1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-04-18 06:03:34 +02:00
Files
wmaker/src/Makefile.am
Christophe CURIS 34d82e5462 wmaker: replaced macro 'store_modifier' by an inline function, in X Modifier initialisation
A macro can be a source of problems, because the compiler has no type on
the arguments to make checks. Using an inline function allows to do those
checks, meaning clearer error messages, it provides clear info in case of
name collision, it is easier to maintain (no need for the hacky '\' for
multi-lines) and the scope of visibility can be controlled more easily (no
need for #undef).

The macro store_modifier had to face a slight change because its 2nd
parameter is used as a reference, which is now clearly visible in the
prototype of the function.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-12-10 10:19:18 +00:00

165 lines
2.6 KiB
Makefile

AUTOMAKE_OPTIONS =
BUILT_SOURCES = wconfig.h
bin_PROGRAMS = wmaker
EXTRA_DIST =
wmaker_SOURCES = \
GNUstep.h \
WindowMaker.h \
actions.c \
actions.h \
appicon.c \
appicon.h \
application.c \
application.h \
appmenu.c \
appmenu.h \
balloon.c \
balloon.h \
client.c \
client.h \
colormap.c \
colormap.h \
cycling.c \
cycling.h \
def_pixmaps.h \
defaults.c \
defaults.h \
dialog.c \
dialog.h \
dock.c \
dockedapp.c \
dockedapp.h \
dock.h \
event.c \
event.h \
extend_pixmaps.h \
framewin.c \
framewin.h \
geomview.c \
geomview.h \
osdep.h \
icon.c \
icon.h \
keybind.h \
main.c \
main.h \
menu.c \
menu.h \
misc.h \
monitor.c \
monitor.h \
motif.c \
motif.h \
moveres.c \
pixmap.c \
pixmap.h \
placement.c \
placement.h \
properties.c \
properties.h \
resources.c \
resources.h \
rootmenu.c \
rootmenu.h \
screen.c \
screen.h \
session.h \
session.c \
shutdown.h \
shutdown.c \
switchpanel.c \
switchpanel.h \
stacking.c \
stacking.h \
startup.c \
startup.h \
superfluous.c \
superfluous.h \
switchmenu.c \
switchmenu.h \
texture.c \
texture.h \
usermenu.c \
usermenu.h \
xdnd.h \
xdnd.c \
xinerama.h \
xinerama.c \
xmodifier.h \
xutil.c \
xutil.h \
wconfig.h \
wcore.c \
wcore.h \
wdefaults.c \
wdefaults.h \
window.c \
window.h \
winmenu.c \
winmenu.h \
winspector.h \
winspector.c \
wmspec.h \
wmspec.c \
workspace.c \
workspace.h \
wsmap.c \
wsmap.h
if WM_OSDEP_BSD
wmaker_SOURCES += osdep_bsd.c
endif
if WM_OSDEP_DARWIN
wmaker_SOURCES += osdep_darwin.c
endif
if WM_OSDEP_LINUX
wmaker_SOURCES += osdep_linux.c
endif
if WM_OSDEP_GENERIC
wmaker_SOURCES += osdep_stub.c
endif
if USE_NESTED_FUNC
wmaker_SOURCES += misc.c \
xmodifier.c
else
nodist_wmaker_SOURCES = misc.hack_nf.c \
xmodifier.hack_nf.c
CLEANFILES = $(nodist_wmaker_SOURCES)
misc.hack_nf.c: misc.c $(top_srcdir)/script/nested-func-to-macro.sh
$(AM_V_GEN)$(top_srcdir)/script/nested-func-to-macro.sh \
$(srcdir)/misc.c -o $(builddir)/misc.hack_nf.c \
-f "append_string" -f "append_modifier"
xmodifier.hack_nf.c: xmodifier.c $(top_srcdir)/script/nested-func-to-macro.sh
$(AM_V_GEN)$(top_srcdir)/script/nested-func-to-macro.sh \
$(srcdir)/xmodifier.c -o $(builddir)/xmodifier.hack_nf.c \
-f "modwarn" -f "modbarf" -f "check_modifier" -f "store_modifier"
endif
AM_CFLAGS =
AM_CPPFLAGS = \
$(DFLAGS) -DLOCALEDIR=\"$(NLSDIR)\" \
-I$(top_srcdir)/wrlib \
-I$(top_srcdir)/WINGs @HEADER_SEARCH_PATH@
wmaker_LDADD = \
$(top_builddir)/WINGs/libWINGs.la\
$(top_builddir)/WINGs/libWUtil.la\
$(top_builddir)/wrlib/libwraster.la\
@XLFLAGS@ \
@LIBXRANDR@ \
@LIBXINERAMA@ \
@XLIBS@ \
@LIBM@ \
@INTLIBS@