2013-12-18 18:28:13 -05:00
|
|
|
BACKEND_NAME = gutenprint52+usb
|
2014-01-22 08:35:12 -05:00
|
|
|
EXEC_NAME = dyesub_backend
|
2013-12-18 18:28:13 -05:00
|
|
|
|
2013-07-26 16:18:35 -04:00
|
|
|
CFLAGS = -Wall -Wextra -g
|
2014-02-23 22:57:22 -05:00
|
|
|
LDFLAGS = `pkg-config --libs libusb-1.0`
|
2014-02-26 08:46:13 -05:00
|
|
|
CPPFLAGS = `pkg-config --cflags libusb-1.0`
|
2012-10-27 10:22:12 -04:00
|
|
|
|
2013-06-27 22:45:50 -04:00
|
|
|
CUPS_BACKEND_DIR = /usr/lib/cups/backend
|
2013-10-04 09:30:52 -04:00
|
|
|
CUPS_DATA_DIR = /usr/share/cups
|
2013-07-18 08:46:44 -04:00
|
|
|
|
2014-10-16 11:51:32 -04:00
|
|
|
BACKENDS = sonyupdr150 kodak6800 kodak1400 shinkos2145 canonselphy mitsu70x kodak605 dnpds40 citizencw01
|
2013-07-06 10:14:06 -04:00
|
|
|
|
2013-11-16 17:33:13 -05:00
|
|
|
DEPS = backend_common.h
|
2013-07-18 18:03:40 -04:00
|
|
|
|
2013-11-16 17:33:13 -05:00
|
|
|
SOURCES = backend_common.c $(addsuffix .c,$(addprefix backend_,$(BACKENDS)))
|
2013-07-18 22:10:56 -04:00
|
|
|
|
2014-03-11 10:31:59 -04:00
|
|
|
# CFLAGS += -DLIBUSB_PRE_1_0_10
|
|
|
|
|
2014-01-22 08:35:12 -05:00
|
|
|
all: $(EXEC_NAME) $(BACKENDS)
|
2013-07-18 22:10:56 -04:00
|
|
|
|
2014-01-22 08:35:12 -05:00
|
|
|
$(EXEC_NAME): $(SOURCES) $(DEPS)
|
2014-02-26 08:46:13 -05:00
|
|
|
gcc -o $@ $(SOURCES) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -DURI_PREFIX=\"$(BACKEND_NAME)\"
|
2013-07-18 18:03:40 -04:00
|
|
|
|
2014-01-22 08:35:12 -05:00
|
|
|
$(BACKENDS): $(EXEC_NAME)
|
|
|
|
ln -sf $(EXEC_NAME) $@
|
2013-10-05 09:55:29 -04:00
|
|
|
|
2014-02-11 13:41:15 -05:00
|
|
|
cppcheck:
|
2014-02-11 20:11:33 -05:00
|
|
|
cppcheck -q -v --std=c99 --enable=all -I/usr/include -DURI_PREFIX=\"$(BACKEND_NAME)\" $(SOURCES)
|
2014-02-11 13:41:15 -05:00
|
|
|
|
2013-07-06 11:03:49 -04:00
|
|
|
install:
|
2014-01-22 08:35:12 -05:00
|
|
|
install -o root -m 700 $(EXEC_NAME) $(CUPS_BACKEND_DIR)/$(BACKEND_NAME)
|
2013-10-04 09:30:52 -04:00
|
|
|
mkdir -p $(CUPS_DATA_DIR)/usb
|
|
|
|
install -o root -m 644 blacklist $(CUPS_DATA_DIR)/usb/net.sf.gimp-print.usb-quirks
|
2012-11-13 16:32:53 -05:00
|
|
|
|
|
|
|
clean:
|
2014-01-22 08:35:12 -05:00
|
|
|
rm -f $(EXEC_NAME) $(BACKENDS)
|