mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 12:00:31 +01:00
We use the AC_PATH_XTRA macro to find all the X library paths during build, but we weren't actually using the variables it generated for building wmlib. Instead, we just hardcoded the linker flag "-lX11", which may or may not actually work.
34 lines
693 B
Makefile
34 lines
693 B
Makefile
|
|
AUTOMAKE_OPTIONS = no-dependencies
|
|
|
|
libWMaker_la_LDFLAGS = -version-info 1:1:0
|
|
lib_LTLIBRARIES = libWMaker.la
|
|
|
|
include_HEADERS = WMaker.h
|
|
|
|
AM_CPPFLAGS = $(DFLAGS) @XCFLAGS@
|
|
|
|
libWMaker_la_LIBADD = @XLFLAGS@ @XLIBS@
|
|
|
|
libWMaker_la_SOURCES = \
|
|
menu.c \
|
|
app.c \
|
|
event.c \
|
|
command.c \
|
|
app.h \
|
|
menu.h
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = wmlib.pc
|
|
|
|
DISTCLEANFILES = $(pkgconfig_DATA)
|
|
|
|
wmlib.pc: Makefile
|
|
@echo "Generating $@"
|
|
@echo 'Name: wmlib' > $@
|
|
@echo 'Description: Window Maker interface definitions' >> $@
|
|
@echo 'Version: $(VERSION)' >> $@
|
|
@echo 'Requires: x11' >> $@
|
|
@echo 'Libs: $(lib_search_path) -lWMaker' >> $@
|
|
@echo 'Cflags: $(inc_search_path)' >> $@
|