# @configure_input@
# $Id: Makefile.in,v 1.11 2003/01/26 13:49:58 godisch Exp $

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

CC          = @CC@
CFLAGS      = -I. @CFLAGS@
LDFLAGS     = @LDFLAGS@
LIBS        = @LIBS@
INSTALL     = @INSTALL@

all: wmwork

wmwork: wmwork.o wmgeneral.o
	$(CC) $(LDFLAGS) $(LIBS) -o $@ $^

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

install: wmwork wmwork.1
	$(INSTALL) -D -m 755 wmwork $(DESTDIR)$(bindir)/wmwork
	$(INSTALL) -D -m 644 wmwork.1 $(DESTDIR)$(mandir)/man1/wmwork.1

uninstall:
	rm -f $(DESTDIR)$(bindir)/wmwork
	rm -f $(DESTDIR)$(mandir)/man1/wmwork.1

clean:
	rm -f *.o config.log config.status *~

distclean: clean
	rm -f Makefile wmwork wmwork.1 config.h

cvsclean: distclean
	rm -f configure config.h.in

.PHONY: all clean distclean cvsclean install uninstall
