295 lines
6.7 KiB
Makefile
295 lines
6.7 KiB
Makefile
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
BUILT_SOURCES = wconfig.h \
|
|
wmaker-popup-v1-server-protocol.h \
|
|
wmaker-popup-v1-protocol.c
|
|
|
|
bin_PROGRAMS = wmaker
|
|
|
|
EXTRA_DIST =
|
|
|
|
nodist_wmaker_SOURCES = \
|
|
wmaker-popup-v1-protocol.c \
|
|
wmaker-popup-v1-server-protocol.h
|
|
|
|
CLEANFILES = wmaker-popup-v1-server-protocol.h \
|
|
wmaker-popup-v1-protocol.c
|
|
|
|
wmaker-popup-v1-server-protocol.h: $(top_srcdir)/protocols/wmaker-popup-v1.xml
|
|
$(WAYLAND_SCANNER) server-header $< $@
|
|
|
|
wmaker-popup-v1-protocol.c: $(top_srcdir)/protocols/wmaker-popup-v1.xml \
|
|
wmaker-popup-v1-server-protocol.h
|
|
$(WAYLAND_SCANNER) private-code $< $@
|
|
|
|
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 \
|
|
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 \
|
|
xinerama.h \
|
|
xinerama.c \
|
|
xmodifier.h \
|
|
xutil.c \
|
|
xutil.h \
|
|
backend/backend.h \
|
|
backend/backend_types.h \
|
|
backend/x11/x11_compat.h \
|
|
backend/x11/x11_backend.h \
|
|
backend/x11/x11_backend.c \
|
|
backend/x11/x11_event.h \
|
|
backend/x11/x11_event.c \
|
|
backend/x11/x11_props.h \
|
|
backend/x11/x11_props.c \
|
|
backend/x11/x11_monitor.h \
|
|
backend/x11/x11_monitor.c \
|
|
backend/x11/wmspec.h \
|
|
backend/x11/wmspec.c \
|
|
backend/x11/xdnd.h \
|
|
backend/x11/xdnd.c \
|
|
geom.h \
|
|
geom.c \
|
|
wconfig.h \
|
|
wcore.c \
|
|
wcore.h \
|
|
wdefaults.c \
|
|
wdefaults.h \
|
|
window.c \
|
|
window.h \
|
|
winmenu.c \
|
|
winmenu.h \
|
|
winspector.h \
|
|
winspector.c \
|
|
workspace.c \
|
|
workspace.h \
|
|
wsmap.c \
|
|
wsmap.h
|
|
|
|
if USE_MWM_HINTS
|
|
wmaker_SOURCES += motif.h motif.c
|
|
endif
|
|
|
|
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_WAYLAND_BACKEND
|
|
wmaker_SOURCES += \
|
|
backend/wayland/wl_backend.h \
|
|
backend/wayland/wl_backend.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 += misc.hack_nf.c xmodifier.hack_nf.c
|
|
|
|
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 = @PANGO_CFLAGS@ @WLROOTS_CFLAGS@
|
|
|
|
AM_CPPFLAGS = $(DFLAGS) \
|
|
-I$(top_builddir)/wrlib \
|
|
-I$(top_srcdir)/WINGs -I$(top_builddir)/WINGs \
|
|
-I$(srcdir)/backend/wayland \
|
|
@HEADER_SEARCH_PATH@
|
|
|
|
|
|
wmaker_LDADD = \
|
|
$(top_builddir)/WINGs/libWINGs.la\
|
|
$(top_builddir)/WINGs/libWUtil.la\
|
|
$(top_builddir)/wrlib/libwraster.la\
|
|
@XLFLAGS@ \
|
|
@LIBXRANDR@ \
|
|
@LIBXINERAMA@ \
|
|
@XLIBS@ \
|
|
@WLROOTS_LIBS@ \
|
|
@LIBM@ \
|
|
@INTLIBS@
|
|
|
|
######################################################################
|
|
|
|
# Create a 'silent rule' for our make check the same way automake does
|
|
AM_V_CHKOPTS = $(am__v_CHKOPTS_$(V))
|
|
am__v_CHKOPTS_ = $(am__v_CHKOPTS_$(AM_DEFAULT_VERBOSITY))
|
|
am__v_CHKOPTS_0 = @echo " CHK $@" ;
|
|
am__v_CHKOPTS_1 =
|
|
|
|
check-local: defaults-callbacks-static defaults-callbacks-dynamic check-no-x11-policy
|
|
|
|
# Check that the callback functions used to load the configuration match
|
|
# the type of the variable where the value will be stored
|
|
defaults-callbacks-static:
|
|
$(AM_V_CHKOPTS)$(top_srcdir)/script/check-wmaker-loaddef-callbacks.sh \
|
|
--source "$(srcdir)/defaults.c" --structure "staticOptionList" \
|
|
--field-value-ptr 4 --field-callback 5 \
|
|
--struct-def "wPreferences=$(srcdir)/WindowMaker.h" \
|
|
--callback "getBool=char, getEnum=char, getInt=int" \
|
|
--callback "getModMask=int"
|
|
|
|
defaults-callbacks-dynamic:
|
|
$(AM_V_CHKOPTS)$(top_srcdir)/script/check-wmaker-loaddef-callbacks.sh \
|
|
--source "$(srcdir)/defaults.c" --structure "optionList" \
|
|
--field-value-ptr 4 --field-callback 5 \
|
|
--struct-def "wPreferences=$(srcdir)/WindowMaker.h" \
|
|
--struct-def "legacy_minipreview_config=$(srcdir)/defaults.c" \
|
|
--callback "getBool=char, getEnum=char, getInt=int" \
|
|
--callback "getPathList=char*, getCoord=WCoord"
|
|
|
|
# Policy files that have been cleaned of direct X11 includes.
|
|
# This list grows as each file is ported to the WMBackend vtable.
|
|
# Add new files here once all direct X11 function calls have been moved
|
|
# behind wm_backend->... dispatch.
|
|
WM_POLICY_CLEAN_FILES = \
|
|
$(srcdir)/xinerama.c \
|
|
$(srcdir)/stacking.c \
|
|
$(srcdir)/placement.c \
|
|
$(srcdir)/cycling.c \
|
|
$(srcdir)/workspace.c \
|
|
$(srcdir)/actions.c \
|
|
$(srcdir)/moveres.c \
|
|
$(srcdir)/window.c \
|
|
$(srcdir)/screen.c \
|
|
$(srcdir)/event.c \
|
|
$(srcdir)/colormap.c \
|
|
$(srcdir)/switchmenu.c \
|
|
$(srcdir)/superfluous.c \
|
|
$(srcdir)/balloon.c \
|
|
$(srcdir)/wsmap.c \
|
|
$(srcdir)/switchpanel.c \
|
|
$(srcdir)/properties.c \
|
|
$(srcdir)/backend/x11/wmspec.c \
|
|
$(srcdir)/application.c \
|
|
$(srcdir)/appicon.c \
|
|
$(srcdir)/dock.c \
|
|
$(srcdir)/dockedapp.c \
|
|
$(srcdir)/icon.c \
|
|
$(srcdir)/motif.c \
|
|
$(srcdir)/pixmap.c \
|
|
$(srcdir)/resources.c \
|
|
$(srcdir)/session.c \
|
|
$(srcdir)/shutdown.c \
|
|
$(srcdir)/texture.c \
|
|
$(srcdir)/winspector.c \
|
|
$(srcdir)/backend/x11/xdnd.c \
|
|
$(srcdir)/rootmenu.c \
|
|
$(srcdir)/xutil.c \
|
|
$(srcdir)/misc.c \
|
|
$(srcdir)/winmenu.c \
|
|
$(srcdir)/appmenu.c \
|
|
$(srcdir)/monitor.c \
|
|
$(srcdir)/usermenu.c \
|
|
$(srcdir)/main.c \
|
|
$(srcdir)/defaults.c \
|
|
$(srcdir)/dialog.c \
|
|
$(srcdir)/menu.c \
|
|
$(srcdir)/wdefaults.c \
|
|
$(srcdir)/xmodifier.c \
|
|
$(srcdir)/framewin.c \
|
|
$(srcdir)/client.c \
|
|
$(srcdir)/startup.c
|
|
|
|
check-no-x11-policy:
|
|
$(AM_V_CHKOPTS)for f in $(WM_POLICY_CLEAN_FILES); do \
|
|
if grep -q '#include[[:space:]]*<X11/' "$$f"; then \
|
|
echo "ERROR: direct X11 include found in policy file: $$f" >&2; \
|
|
exit 1; \
|
|
fi; \
|
|
done; \
|
|
echo " X11 policy check passed ($(words $(WM_POLICY_CLEAN_FILES)) files clean)"
|