selphy_print/Makefile

29 lines
851 B
Makefile
Raw Normal View History

2012-10-27 10:22:12 -04:00
CFLAGS = -Wall
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
DEPS = backend_common.c
2012-10-27 10:22:12 -04:00
all: selphy_print kodak1400_print kodak6800_print shinko_s2145_print
2013-06-27 22:45:50 -04:00
selphy_print: selphy_print.c $(DEPS)
2013-06-27 22:45:50 -04:00
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
kodak6800_print: kodak6800_print.c $(DEPS)
2013-06-27 22:45:50 -04:00
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
2012-11-13 16:40:36 -05:00
kodak1400_print: kodak1400_print.c $(DEPS)
2013-06-27 22:45:50 -04:00
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
shinko_s2145_print: shinko_s2145_print.c $(DEPS)
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
install:
2013-06-27 22:45:50 -04:00
install -o root -m 700 selphy_print $(CUPS_BACKEND_DIR)/selphy
install -o root -m 700 kodak1400_print $(CUPS_BACKEND_DIR)/kodak1400
install -o root -m 700 kodak6800_print $(CUPS_BACKEND_DIR)/kodak6800
install -o root -m 700 shinko_s2145_print $(CUPS_BACKEND_DIR)/shinko_s2145
clean:
rm -f selphy_print kodak6800_print kodak1400_print shinko_s2145