wmmixer patches
[dockapps.git] / wmmixer / Makefile
blob47cef3dd6d64af0676ee373c5c390ddbe3573036
1 # $Id: Makefile,v 1.5 2002/06/25 22:13:09 gordon Exp $
3 prefix = /usr/local
4 exec_prefix = ${prefix}
5 bindir = ${exec_prefix}/bin
6 mandir = ${prefix}/share/man
8 DESTDIR =
10 CXX = g++
11 CXXFLAGS = -O -Wall
12 EXTRA_LIBS = -L/usr/X11R6/lib -lX11 -lXpm -lXext
15 LD = g++
16 LDFLAGS = -o $(EXECUTABLE) $(EXTRA_LIBDIRS) $(EXTRA_LIBS) $(CXXFLAGS)
18 EXECUTABLE = wmmixer
19 OBJS = xhandler.o mixctl.o wmmixer.o exception.o
21 INSTALL = install
22 INSTALL_FILE = $(INSTALL) -D -p -o root -g root -m 644
23 INSTALL_PROGRAM = $(INSTALL) -D -p -o root -g root -m 755
25 .cc.o:
26 $(CXX) $(CXXFLAGS) -c -o $@ $<
28 $(EXECUTABLE): $(OBJS)
29 $(LD) $(LDFLAGS) $(OBJS)
31 all: $(EXECUTABLE)
33 clean:
34 rm -f $(OBJS) $(EXECUTABLE)
36 install: install-bin install-doc
38 install-bin: wmmixer
39 $(INSTALL_PROGRAM) $< $(DESTDIR)$(bindir)/wmmixer
41 install-doc: wmmixer.1
42 $(INSTALL_FILE) $< $(DESTDIR)$(mandir)/man1/wmmixer.1
44 uninstall: uninstall-bin uninstall-doc
46 uninstall-bin:
47 rm -f $(DESTDIR)$(bindir)/wmmixer
49 uninstall-doc:
50 rm -f $(DESTDIR)$(mandir)/man1/wmmixer.1
52 .PHONY: all clean dist-clean install install-bin install-doc \
53 uninstall uninstall-bin uninstall-doc