mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-25 07:32:36 +01:00
Autoconf uses multiple levels of variables when defining paths. For
example, ${datadir} by default is ${datarootdir}, which by default is
${prefix}/share, which by default is /usr/local. Substituting from
./configure, as is done by AC_DEFINE or AC_DEFINE_UNQUOTED, does not
expand all these variables. This was causing some of our defines to have
garbage like "${prefix}/share/pixmaps" rather than the intended
"/usr/local/share/pixmaps".
The solution is to generate the files needing these paths from the
Makefile rather than from ./configure, because make does fully expand
all those levels.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
125 lines
2.9 KiB
Makefile
125 lines
2.9 KiB
Makefile
## automake input file for WINGs
|
|
|
|
AUTOMAKE_OPTIONS =
|
|
|
|
SUBDIRS = WINGs . po Documentation Resources
|
|
|
|
libWINGs_la_LDFLAGS = -version-info @WINGS_VERSION@
|
|
libWUtil_la_LDFLAGS = -version-info @WUTIL_VERSION@
|
|
|
|
bin_SCRIPTS = get-wings-flags get-wutil-flags
|
|
|
|
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 @XLIBS@ @XFTLIBS@ @FCLIBS@ @LIBM@
|
|
libWUtil_la_LIBADD = @LIBBSD@
|
|
|
|
EXTRA_DIST = BUGS make-rgb Examples Extras Tests get-wings-flags.in get-wutil-flags.in
|
|
|
|
|
|
# wbutton.c
|
|
libWINGs_la_SOURCES = \
|
|
configuration.c \
|
|
dragcommon.c \
|
|
dragdestination.c \
|
|
dragsource.c \
|
|
rgb.h \
|
|
selection.c \
|
|
wappresource.c \
|
|
wballoon.c \
|
|
wbox.c \
|
|
wbrowser.c \
|
|
wbutton.c \
|
|
wcolor.c \
|
|
wcolorpanel.c \
|
|
wcolorwell.c \
|
|
wconfig.h \
|
|
wevent.c \
|
|
wfilepanel.c \
|
|
wframe.c \
|
|
wfont.c \
|
|
wfontpanel.c \
|
|
widgets.c \
|
|
winputmethod.c \
|
|
wlabel.c \
|
|
wlist.c \
|
|
wmenuitem.c \
|
|
wmisc.c \
|
|
wpanel.c \
|
|
wpixmap.c \
|
|
wpopupbutton.c \
|
|
wscroller.c \
|
|
wscrollview.c \
|
|
wslider.c \
|
|
wsplitview.c \
|
|
wtabview.c \
|
|
wtextfield.c \
|
|
wview.c \
|
|
wwindow.c
|
|
|
|
libWUtil_la_SOURCES = \
|
|
array.c \
|
|
bagtree.c \
|
|
data.c \
|
|
error.c \
|
|
findfile.c \
|
|
handlers.c \
|
|
hashtable.c \
|
|
memory.c \
|
|
misc.c \
|
|
notification.c \
|
|
proplist.c \
|
|
string.c \
|
|
userdefaults.c \
|
|
usleep.c \
|
|
wapplication.c \
|
|
wconfig.h \
|
|
wutil.c
|
|
|
|
|
|
AM_CPPFLAGS = -DLOCALEDIR=\"$(NLSDIR)\" -DRESOURCE_PATH=\"$(datadir)/WINGs\" -DDEBUG
|
|
AM_CFLAGS =
|
|
|
|
INCLUDES = -I$(top_srcdir)/WINGs/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
|
|
@XFTFLAGS@ @HEADER_SEARCH_PATH@
|
|
|
|
DISTCLEANFILES = WINGs.pc get-wings-flags get-wutil-flags
|
|
|
|
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' >> $@
|
|
@echo 'Libs: $(lib_search_path) -lWINGs $(XFTLIBS) $(XLIBS) -lm $(INTLIBS)' >> $@
|
|
@echo 'Cflags: $(inc_search_path)' >> $@
|
|
|
|
get-wings-flags: get-wings-flags.in Makefile
|
|
@echo "Generating $@"
|
|
@$(SED) -e 's#$${inc_search_path}#$(inc_search_path)#;' \
|
|
-e 's#$${lib_search_path}#$(lib_search_path)#;' \
|
|
-e 's#$${GFXLIBS}#$(GFXLIBS)#;' \
|
|
-e 's#$${XFTLIBS}#$(XFTLIBS)#;' \
|
|
-e 's#$${INTLIBS}#$(INTLIBS)#;' \
|
|
-e 's#$${XLIBS}#$(XLIBS)#;' < $< > $@
|
|
@chmod 755 $@
|
|
|
|
get-wutil-flags: get-wutil-flags.in Makefile
|
|
@echo "Generating $@"
|
|
@$(SED) -e 's#$${includedir}#$(includedir)#;' \
|
|
-e 's#$${libdir}#$(libdir)#;' \
|
|
-e 's#$${INTLIBS}#$(INTLIBS)#;' < $< > $@
|
|
@chmod 755 $@
|
|
|
|
install-exec-local:
|
|
@$(NORMAL_INSTALL)
|
|
$(mkinstalldirs) $(DESTDIR)$(libdir)/pkgconfig
|
|
@list='WINGs.pc'; for p in $$list; do \
|
|
if test -f $$p; then \
|
|
echo "$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/"; \
|
|
$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \
|
|
else :; fi; \
|
|
done
|