selphy_print/Makefile

31 lines
808 B
Makefile
Raw Normal View History

BACKEND_NAME = gutenprint52+usb
EXEC_NAME = dyesub_backend
CFLAGS = -Wall -Wextra -g
2013-06-27 22:45:50 -04:00
LDFLAGS = -lusb-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
CUPS_DATA_DIR = /usr/share/cups
BACKENDS = sonyupdr150 kodak6800 kodak1400 shinkos2145 canonselphy mitsu70x kodak605 dnpds40
2013-11-16 17:33:13 -05:00
DEPS = backend_common.h
2013-11-16 17:33:13 -05:00
SOURCES = backend_common.c $(addsuffix .c,$(addprefix backend_,$(BACKENDS)))
all: $(EXEC_NAME) $(BACKENDS)
$(EXEC_NAME): $(SOURCES) $(DEPS)
gcc -o $@ $(SOURCES) $(LDFLAGS) $(CFLAGS) -DURI_PREFIX=\"$(BACKEND_NAME)\"
$(BACKENDS): $(EXEC_NAME)
ln -sf $(EXEC_NAME) $@
install:
install -o root -m 700 $(EXEC_NAME) $(CUPS_BACKEND_DIR)/$(BACKEND_NAME)
mkdir -p $(CUPS_DATA_DIR)/usb
install -o root -m 644 blacklist $(CUPS_DATA_DIR)/usb/net.sf.gimp-print.usb-quirks
clean:
rm -f $(EXEC_NAME) $(BACKENDS)