189 lines
4.7 KiB
Makefile
189 lines
4.7 KiB
Makefile
## automake input file for WINGs
|
|
|
|
AUTOMAKE_OPTIONS =
|
|
|
|
SUBDIRS = WINGs . po Documentation Resources
|
|
DIST_SUBDIRS = $(SUBDIRS) Tests Examples Extras
|
|
|
|
libWINGs_la_LDFLAGS = -version-info @WINGS_VERSION@
|
|
libWUtil_la_LDFLAGS = -version-info @WUTIL_VERSION@
|
|
|
|
lib_LTLIBRARIES = libWUtil.la libWINGs.la
|
|
|
|
|
|
LDADD= libWUtil.la libWINGs.la $(top_builddir)/wrlib/libwraster.la @INTLIBS@
|
|
libWINGs_la_LIBADD = libWUtil.la $(top_builddir)/wrlib/libwraster.la $(X11_LIBS_IF_ENABLED) @FCLIBS@ @LIBM@ $(WINGS_PANGO_LIBS) @PIXMAN_LIBS@ $(WAYLAND_CLIENT_LIBS_IF_ENABLED)
|
|
libWUtil_la_LIBADD = @LIBBSD@
|
|
|
|
if USE_WAYLAND_CLIENT
|
|
WAYLAND_CLIENT_LIBS_IF_ENABLED = @WAYLAND_CLIENT_LIBS@
|
|
else
|
|
WAYLAND_CLIENT_LIBS_IF_ENABLED =
|
|
endif
|
|
|
|
if USE_X11_BACKEND
|
|
X11_LIBS_IF_ENABLED = @XLIBS@ @XFT_LIBS@
|
|
WINGS_PANGO_LIBS = @PANGO_LIBS@
|
|
else
|
|
X11_LIBS_IF_ENABLED =
|
|
# Without the X11 backend, PangoXft (which pulls libXft -> libX11) is
|
|
# unused; configure provides PANGO_LIBS with Xft variants filtered.
|
|
WINGS_PANGO_LIBS = @WINGS_PANGO_LIBS_NO_XFT@
|
|
endif
|
|
|
|
EXTRA_DIST = BUGS make-rgb Examples Extras Tests
|
|
|
|
|
|
# Backend-neutral / shared sources (always compiled).
|
|
libWINGs_la_SOURCES = \
|
|
configuration.c \
|
|
dragcommon.c \
|
|
rgb.h \
|
|
wbox.c \
|
|
wbrowser.c \
|
|
wbutton.c \
|
|
wcolor.c \
|
|
wcolor_wl.c \
|
|
wcolorwell.c \
|
|
wconfig.h \
|
|
wevent.c \
|
|
wevent_wl.c \
|
|
wfilepanel.c \
|
|
wframe.c \
|
|
wfont.c \
|
|
wfont_wl.c \
|
|
wfontpanel.c \
|
|
widgets.c \
|
|
wlabel.c \
|
|
wlist.c \
|
|
wmenuitem.c \
|
|
wmisc.c \
|
|
wpanel.c \
|
|
wpixmap.c \
|
|
wpopupbutton.c \
|
|
wprogressindicator.c \
|
|
wrender_wl.c \
|
|
wruler.c \
|
|
wscroller.c \
|
|
wscrollview.c \
|
|
wslider.c \
|
|
wsplitview.c \
|
|
wtabview.c \
|
|
wtext.c \
|
|
wtextfield.c \
|
|
wview.c \
|
|
wview_wl.c \
|
|
wclient_wl.c \
|
|
wwindow.c \
|
|
wcolorpanel.c
|
|
|
|
# X11 backend sources — only compiled when --enable-x11-backend (the default).
|
|
if USE_X11_BACKEND
|
|
libWINGs_la_SOURCES += \
|
|
dragcommon_x11.c \
|
|
dragdestination_x11.c \
|
|
dragsource_x11.c \
|
|
selection_x11.c \
|
|
wappresource_x11.c \
|
|
wballoon_x11.c \
|
|
wcolor_x11.c \
|
|
wcolorpanel_x11.c \
|
|
wevent_x11.c \
|
|
wfont_x11.c \
|
|
widgets_x11.c \
|
|
winputmethod_x11.c \
|
|
wrender_x11.c \
|
|
wview_x11.c
|
|
else
|
|
# Stubs that provide empty implementations of the public WINGs API
|
|
# symbols normally exported from *_x11.c files, so applications that
|
|
# link libWINGs but never call them resolve cleanly in pure-Wayland
|
|
# builds.
|
|
libWINGs_la_SOURCES += wappresource_wl.c wballoon_wl.c wcolorpanel_wl.c wstubs_no_x11.c
|
|
endif
|
|
|
|
if USE_WAYLAND_CLIENT
|
|
nodist_libWINGs_la_SOURCES = \
|
|
xdg-shell-protocol.c \
|
|
xdg-shell-client-protocol.h \
|
|
wmaker-popup-v1-protocol.c \
|
|
wmaker-popup-v1-client-protocol.h
|
|
BUILT_SOURCES = xdg-shell-client-protocol.h xdg-shell-protocol.c \
|
|
wmaker-popup-v1-client-protocol.h wmaker-popup-v1-protocol.c
|
|
CLEANFILES = xdg-shell-client-protocol.h xdg-shell-protocol.c \
|
|
wmaker-popup-v1-client-protocol.h wmaker-popup-v1-protocol.c
|
|
|
|
xdg-shell-client-protocol.h:
|
|
$(WAYLAND_SCANNER) client-header \
|
|
$(WAYLAND_PROTOCOLS_DIR)/stable/xdg-shell/xdg-shell.xml $@
|
|
|
|
xdg-shell-protocol.c: xdg-shell-client-protocol.h
|
|
$(WAYLAND_SCANNER) private-code \
|
|
$(WAYLAND_PROTOCOLS_DIR)/stable/xdg-shell/xdg-shell.xml $@
|
|
|
|
wmaker-popup-v1-client-protocol.h: $(top_srcdir)/protocols/wmaker-popup-v1.xml
|
|
$(WAYLAND_SCANNER) client-header $< $@
|
|
|
|
wmaker-popup-v1-protocol.c: $(top_srcdir)/protocols/wmaker-popup-v1.xml \
|
|
wmaker-popup-v1-client-protocol.h
|
|
$(WAYLAND_SCANNER) private-code $< $@
|
|
endif
|
|
|
|
libWUtil_la_SOURCES = \
|
|
array.c \
|
|
bagtree.c \
|
|
data.c \
|
|
error.c \
|
|
error.h \
|
|
findfile.c \
|
|
handlers.c \
|
|
hashtable.c \
|
|
memory.c \
|
|
menuparser.c \
|
|
menuparser.h \
|
|
menuparser_macros.c \
|
|
misc.c \
|
|
notification.c \
|
|
proplist.c \
|
|
string.c \
|
|
tree.c \
|
|
userdefaults.c \
|
|
userdefaults.h \
|
|
usleep.c \
|
|
wapplication.c \
|
|
wconfig.h \
|
|
wutil.c
|
|
|
|
|
|
AM_CFLAGS = @PANGO_CFLAGS@ @PIXMAN_CFLAGS@ @WAYLAND_CLIENT_CFLAGS@
|
|
|
|
AM_CPPFLAGS = -DRESOURCE_PATH=\"$(datadir)/WINGs\" \
|
|
-I$(top_srcdir)/WINGs/WINGs -I$(top_builddir)/WINGs/WINGs \
|
|
-I$(top_builddir)/wrlib -I$(top_srcdir)/src \
|
|
-I$(top_builddir)/WINGs \
|
|
@XFT_CFLAGS@ @HEADER_SEARCH_PATH@
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = WINGs.pc WUtil.pc
|
|
|
|
DISTCLEANFILES = $(pkgconfig_DATA)
|
|
|
|
WINGs.pc: Makefile
|
|
@echo "Generating $@"
|
|
@echo 'Name: WINGs' > $@
|
|
@echo 'Description: Small widget set with the NeXTStep(TM) look and feel' >> $@
|
|
@echo 'Version: $(VERSION)' >> $@
|
|
@echo 'Requires: wrlib WUtil' >> $@
|
|
@echo 'Libs: $(lib_search_path) -lWINGs' >> $@
|
|
@echo 'Libs.private: $(XFT_LIBS) $(PANGOLIBS) $(XLIBS) -lm $(INTLIBS)' >> $@
|
|
@echo 'Cflags: $(inc_search_path) @PANGO_CFLAGS@' >> $@
|
|
|
|
WUtil.pc: Makefile
|
|
@echo "Generating $@"
|
|
@echo 'Name: WUtil' > $@
|
|
@echo 'Description: Utility library for WINGs' >> $@
|
|
@echo 'Version: $(VERSION)' >> $@
|
|
@echo 'Libs: -L$(libdir) -lWUtil' >> $@
|
|
@echo 'Libs.private: $(INTLIBS)' >> $@
|
|
@echo 'Cflags: -I$(includedir)' >> $@
|