#SHELL=/usr/bin/bash

VPATH = src

LIBS=-lcups -lcupsimage

#DEFS=-DLOAD_LIBCUPS
#LIBS=-ldl

rastertohtcard:	rastertohtcard.o Util0.o HppCmd.o OneJob.o ClrCvt.o HTSharpen.o MapTable.o TableMaping.o CSaturation.o MakeTexture.o HTRot.o ImageFn.o
	g++ -o rastertohtcard rastertohtcard.o Util0.o HppCmd.o OneJob.o ClrCvt.o HTSharpen.o MapTable.o TableMaping.o CSaturation.o MakeTexture.o HTRot.o ImageFn.o $(LIBS)

clean:
	@rm *.o rastertohtcard

install:
	@mkdir -p /usr/lib/cups/filter
	@chmod +x rastertohtcard
	@cp rastertohtcard /usr/lib/cups/filter
	@mkdir -p /usr/share/cups/model/hiti
	@cp ./ppd/hiti/*.gz /usr/share/cups/model/hiti
	

uninstall:
	@rm /usr/lib/cups/filter/rastertohtcard
	@rm /usr/share/cups/model/hiti/*.gz

