# $Id: Makefile.in,v 1.13 2003/08/04 12:27:22 godisch Exp $
# @configure_input@

DESTDIR         =
prefix          = @prefix@
exec_prefix     = @exec_prefix@
bindir          = @bindir@
mandir          = @mandir@

CC              = @CC@
CPPFLAGS        = -I. @CPPFLAGS@
CFLAGS          = -Wall @CFLAGS@
LDFLAGS         = -Wall @LDFLAGS@
LDLIBS          = @LIBS@
INSTALL         = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA    = @INSTALL_DATA@

all: wmwork

wmwork: wmwork.o wmgeneral.o

wmwork.o: wmwork.c wmwork.h config.h wmwork.xpm
wmgeneral.o: wmgeneral.c wmgeneral.h

install: wmwork wmwork.1
	${INSTALL} -d ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man1
	${INSTALL_PROGRAM} wmwork   ${DESTDIR}${bindir}
	${INSTALL_DATA}    wmwork.1 ${DESTDIR}${mandir}/man1

uninstall:
	${RM} ${DESTDIR}${bindir}/wmwork ${DESTDIR}${mandir}/man1/wmwork.1

clean:
	${RM} *.o config.log config.status *~

distclean: clean
	${RM} Makefile wmwork wmwork.1 config.h

cvsclean: distclean
	${RM} configure config.h.in

.PHONY: all install uninstall clean distclean cvsclean
