CC = gcc


MANDIR=/usr/man/man1
BIN=/usr/bin/X11

xpmroot: xpmroot.o 
	$(CC) -o xpmroot xpmroot.o -lXpm -lX11				

xpmroot.o: xpmroot.c xpm.h

install: $(BIN)/xpmroot $(MANDIR)/xpmroot.1

$(MANDIR)/xpmroot.1: xpmroot.1
	install -c $? $@

$(BIN)/xpmroot: xpmroot
	install -c $? $@

clean:
	rm -f xpmroot.o
	rm -f xpmroot
	rm -f *~







