wmmixer: Use autotools for build.
This commit is contained in:
parent
fa41f8df6c
commit
9d489b799e
|
@ -1,54 +0,0 @@
|
||||||
# $Id: Makefile,v 1.5 2002/06/25 22:13:09 gordon Exp $
|
|
||||||
|
|
||||||
prefix = /usr/local
|
|
||||||
exec_prefix = ${prefix}
|
|
||||||
bindir = ${exec_prefix}/bin
|
|
||||||
mandir = ${prefix}/share/man
|
|
||||||
|
|
||||||
DESTDIR =
|
|
||||||
|
|
||||||
CXX = g++
|
|
||||||
CXXFLAGS = -O -Wall
|
|
||||||
EXTRA_LIBS = -L/usr/X11R6/lib -lX11 -lXpm -lXext
|
|
||||||
|
|
||||||
|
|
||||||
LD = g++
|
|
||||||
LDFLAGS = -o $(EXECUTABLE) $(CXXFLAGS)
|
|
||||||
|
|
||||||
EXECUTABLE = wmmixer
|
|
||||||
OBJS = xhandler.o mixctl.o wmmixer.o exception.o
|
|
||||||
|
|
||||||
INSTALL = install
|
|
||||||
INSTALL_FILE = $(INSTALL) -D -p -o root -g root -m 644
|
|
||||||
INSTALL_PROGRAM = $(INSTALL) -D -p -o root -g root -m 755
|
|
||||||
|
|
||||||
.cc.o:
|
|
||||||
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
$(EXECUTABLE): $(OBJS)
|
|
||||||
$(LD) $(LDFLAGS) $(OBJS) $(EXTRA_LIBDIRS) $(EXTRA_LIBS)
|
|
||||||
|
|
||||||
all: $(EXECUTABLE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(OBJS) $(EXECUTABLE)
|
|
||||||
|
|
||||||
install: install-bin install-doc
|
|
||||||
|
|
||||||
install-bin: wmmixer
|
|
||||||
$(INSTALL_PROGRAM) $< $(DESTDIR)$(bindir)/wmmixer
|
|
||||||
|
|
||||||
install-doc: wmmixer.1
|
|
||||||
$(INSTALL_FILE) $< $(DESTDIR)$(mandir)/man1/wmmixer.1
|
|
||||||
|
|
||||||
uninstall: uninstall-bin uninstall-doc
|
|
||||||
|
|
||||||
uninstall-bin:
|
|
||||||
rm -f $(DESTDIR)$(bindir)/wmmixer
|
|
||||||
|
|
||||||
uninstall-doc:
|
|
||||||
rm -f $(DESTDIR)$(mandir)/man1/wmmixer.1
|
|
||||||
|
|
||||||
.PHONY: all clean dist-clean install install-bin install-doc \
|
|
||||||
uninstall uninstall-bin uninstall-doc
|
|
||||||
|
|
9
wmmixer/Makefile.am
Normal file
9
wmmixer/Makefile.am
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
bin_PROGRAMS = wmmixer
|
||||||
|
dist_man_MANS = wmmixer.1
|
||||||
|
wmmixer_SOURCES = common.h exception.cc exception.h mixctl.cc mixctl.h \
|
||||||
|
wmmixer.cc wmmixer.h xhandler.cc xhandler.h \
|
||||||
|
XPM/icons.xpm XPM/norec.xpm XPM/tile.xpm XPM/wmmixer.xpm
|
||||||
|
EXTRA_DIST = CHANGES
|
||||||
|
|
||||||
|
AM_CFLAGS = $(Xlib_CFLAGS) $(Xext_CFLAGS) $(libXpm_CFLAGS)
|
||||||
|
LIBS += $(Xlib_LIBS) $(Xext_LIBS) $(libXpm_LIBS)
|
9
wmmixer/configure.ac
Normal file
9
wmmixer/configure.ac
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
AC_INIT([wmmixer], [1.7], [wmaker-dev@lists.windowmaker.org])
|
||||||
|
AM_INIT_AUTOMAKE([foreign])
|
||||||
|
AC_CONFIG_SRCDIR([configure.ac])
|
||||||
|
AC_PROG_CXX
|
||||||
|
PKG_CHECK_MODULES([Xlib], [x11])
|
||||||
|
PKG_CHECK_MODULES([Xext], [xext])
|
||||||
|
PKG_CHECK_MODULES([libXpm], [xpm])
|
||||||
|
AC_CONFIG_FILES([Makefile])
|
||||||
|
AC_OUTPUT
|
|
@ -435,7 +435,7 @@ void WMMixer::displayUsage(const char* name)
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
void WMMixer::displayVersion()
|
void WMMixer::displayVersion()
|
||||||
{
|
{
|
||||||
std::cout << "wmmixer version 1.5" << std::endl;
|
std::cout << "wmmixer version " PACKAGE_VERSION << std::endl;
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue