makefile: Strip out the old stuff, only build new stuff now.

Next up, porting other backends to new framework!
This commit is contained in:
Solomon Peachy 2013-07-18 12:51:05 -04:00
parent 40604d6664
commit a3d60820b9
2 changed files with 7 additions and 16 deletions

7
.gitignore vendored
View File

@ -1,6 +1,3 @@
*~
canon-selphy_print
kodak-1400_print
kodak-6800_print
shinko-s2145_print
sony-updr150_print
sonyupdr150
gutenprint

View File

@ -4,9 +4,7 @@ LDFLAGS = -lusb-1.0
CUPS_BACKEND_DIR = /usr/lib/cups/backend
DEPS = backend_common.c backend_common.h
#all: canon-selphy_print kodak-1400_print kodak-6800_print shinko-s2145_print sony-updr150_print
all: gutenprint
all: gutenprint sonyupdr150
gutenprint: sony_updr150_print.c $(DEPS)
gcc -o $@ $< backend_common.c $(LDFLAGS) $(CFLAGS)
@ -23,15 +21,11 @@ kodak-1400_print: kodak1400_print.c $(DEPS)
shinko-s2145_print: shinko_s2145_print.c $(DEPS)
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
sony-updr150_print: sony_updr150_print.c $(DEPS)
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
sonyupdr150:
ln -s gutenprint $@
install:
install -o root -m 700 canon-selphy_print $(CUPS_BACKEND_DIR)/canonselphy
install -o root -m 700 kodak-1400_print $(CUPS_BACKEND_DIR)/kodak1400
install -o root -m 700 kodak-6800_print $(CUPS_BACKEND_DIR)/kodak6800
install -o root -m 700 shinko-s2145_print $(CUPS_BACKEND_DIR)/shinkos2145
install -o root -m 700 sony-updr150_print $(CUPS_BACKEND_DIR)/sonyupdr150
install -o root -m 700 gutenprint $(CUPS_BACKEND_DIR)/gutenprint+usb
clean:
rm -f selphy_print kodak6800_print kodak1400_print shinko_s2145 sony_updr150
rm -f gutenprint canonselphy kodak6800 kodak1400 shinkos2145 sonyupdr150