4
# Backend makefile for OpenPrinting CUPS Filters.
6
# Copyright 2007-2011 by Apple Inc.
7
# Copyright 1997-2007 by Easy Software Products, all rights reserved.
9
# These coded instructions, statements, and computer programs are the
10
# property of Apple Inc. and are protected by Federal copyright
11
# law. Distribution and use rights are outlined in the file "LICENSE.txt"
12
# which should have been included with this file. If this file is
13
# file is missing or damaged, see the license at "http://www.cups.org/".
15
# This file is subject to the Apple OS-Developed Software exception.
24
BACKENDS = parallel serial
26
TARGETS = $(BACKENDS) $(UNITTESTS)
42
# Clean all object files...
46
$(RM) $(OBJS) $(TARGETS)
50
# Update dependencies (without system header dependencies...)
54
makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
58
# Install all targets...
61
install: all install-data install-headers install-libs install-exec
65
# Install data files...
76
echo Installing backends in $(SERVERBIN)/backend...
77
$(INSTALL_DIR) -m 755 $(SERVERBIN)/backend
78
for file in $(BACKENDS); do \
79
$(INSTALL_BIN) $$file $(SERVERBIN)/backend; \
91
# Install libraries...
98
# Uninstall all targets...
102
echo Uninstalling backends from $(SERVERBIN)/backend...
103
for file in $(BACKENDS); do \
104
$(RM) $(SERVERBIN)/backend/$$file; \
106
-$(RMDIR) $(SERVERBIN)/backend
107
-$(RMDIR) $(SERVERBIN)
116
$(CC) $(LDFLAGS) -o test1284 test1284.o $(LIBS)
123
parallel: parallel.o ieee1284.o
125
$(CC) $(LDFLAGS) -o parallel parallel.o ieee1284.o $(LIBS)
134
$(CC) $(LDFLAGS) -o serial serial.o $(BACKLIBS) $(LIBS)