# Generated automatically from Makefile.in by configure.


# Directory to install everything to
prefix = /usr/local
EXEC_PREFIX = ${prefix}
BINDIR = $(EXEC_PREFIX)/bin
MANDIR = $(prefix)/man/man1

OBJS = xdisk.o xdisk_main.o
SOURCES = xdisk_main.cc \
	  xdisk.c xdisk.h \
	  config.h

LDLIBS = -lforms -lX11 -lm
LDPATH = -L/usr/X11R6/lib
INCLUDES = 
DEFS = 

DOCSRCDIR =

all: $(OBJS)
	g++ -o xformat $(LDLIBS) $(LDPATH) $(OBJS)

install: xformat
	cp ./xformat $(BINDIR)

xformat: $(OBJS)
	g++ -o xformat $(OBJS) $(LDLIBS) $(LDPATH) 

xdisk_main.o: xdisk_main.cc xdisk.h config.h
	g++ -c $(INCLUDES) $(DEFS) xdisk_main.cc

xdisk.o: xdisk.c xdisk.h
	gcc -c $(INCLUDES) xdisk.c

srcdoc: $(SOURCES)
	set -e; for i in $(SOURCES); do cprint -headline $$i -o $$i.tex; done
	set -e; for i in $(SOURCES); do tex $$i.tex; done
	rm *.log
	touch srcdoc

.PHONY: clean
clean:
	-rm xformat
	-rm *.o
	-rm srcdoc

.PHONY: realclean
realclean: clean
	-rm config.log
	-rm config.cache
	-rm config.status

