CFLAGS= -O2 -fno-strength-reduce
LDFLAGS = -lm
#CFLAGS=  -ggdb -fno-strength-reduce
#LDFLAGS = -ggdb

all: umax-cli
	# ***************************************************************
	# * compilation completed,                                      *
	# *                                                             *
	# * to install files to /usr/local/bin and /usr/local/man/man1, *
	# * do "make install" or "make install-german" as root          *
	# *                                                             *
	# * please read: README and CHANGES and the manual-page         *
	# ***************************************************************

umax-cli: umax-cli.o umax-text.o umax-driver.o umax-scsi.o scsicmd.o debug.o

umax-cli.o: umax-cli.c

umax-cli.c: debug.h

umax-scsi.o: umax-scsi.c

umax-driver.o: umax-driver.c

umax-text.o: umax-text.c

scsicmd.o: scsicmd.c

scsicmd.c: scsicmd.h

debug.o: debug.c

debug.c: debug.h


clean:
	rm -f umax-cli umax-cli.o umax-text.o umax-driver.o umax-scsi.o scsicmd.o debug.o

install:
	cp umax-cli /usr/local/bin
	cp umaX-scan /usr/local/bin
	cp umax-cli-e.1 /usr/local/man/man1/umax-cli.1
	# ******************************************************
	# * umax-cli      - the driver for umax-scanners       *
	# * umaX-scan     - a GUI for umax                     *
	# * man umax-cli  - manpage for umax                   *
	# ******************************************************

install-german:
	cp umax-cli /usr/local/bin
	cp umaX-scan /usr/local/bin
	cp umax-cli-d.1 /usr/local/man/man1/umax-cli.1
	# ******************************************************
	# * umax-cli      - der Treiber fuer Umax-Scanner      *
	# * umaX-scan     - GUI fuer umax                      *
	# * man umax-cli  - Anleitung fuer umax                *
	# ******************************************************

