1 # $Id: Makefile,v 1.5 2002/06/25 22:13:09 gordon Exp $
4 exec_prefix = ${prefix}
5 bindir = ${exec_prefix}/bin
6 mandir = ${prefix}/share
/man
12 EXTRA_LIBS
= -L
/usr
/X11R6
/lib
-lX11
-lXpm
-lXext
16 LDFLAGS
= -o
$(EXECUTABLE
) $(EXTRA_LIBDIRS
) $(EXTRA_LIBS
) $(CXXFLAGS
)
19 OBJS
= xhandler.o mixctl.o wmmixer.o exception.o
22 INSTALL_FILE
= $(INSTALL
) -D
-p
-o root
-g root
-m
644
23 INSTALL_PROGRAM
= $(INSTALL
) -D
-p
-o root
-g root
-m
755
26 $(CXX
) $(CXXFLAGS
) -c
-o
$@
$<
28 $(EXECUTABLE
): $(OBJS
)
29 $(LD
) $(LDFLAGS
) $(OBJS
)
34 rm -f
$(OBJS
) $(EXECUTABLE
)
36 install: install-bin install-doc
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
47 rm -f
$(DESTDIR
)$(bindir)/wmmixer
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