2 # "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $"
4 # CGI makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 2007 by Apple Inc.
7 # Copyright 1997-2006 by Easy Software Products.
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/".
18 CGIS
= admin.cgi classes.cgi help.cgi jobs.cgi printers.cgi
19 TARGETS
= libcgi.a
$(CGIS
) testcgi testhi testtemplate
20 LIBOBJS
= help-index.o html.o ipp-var.o search.o template.o var.o
21 OBJS
= $(LIBOBJS
) admin.o classes.o help.o \
22 jobs.o printers.o testcgi.o testhi.o testtemplate.o
33 # Clean all object files...
37 $(RM
) $(OBJS
) $(TARGETS
)
41 # Update dependencies (without system header dependencies...)
45 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
49 # Install all targets...
53 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/cgi-bin
54 for file in
$(CGIS
); do \
55 $(INSTALL_BIN
) $$file $(SERVERBIN
)/cgi-bin
; \
57 if
test "x$(SYMROOT)" != "x"; then \
58 $(INSTALL_DIR
) $(SYMROOT
); \
59 for file in
$(TARGETS
); do \
60 cp
$$file $(SYMROOT
); \
66 # Uninstall all targets...
70 for file in
$(CGIS
); do \
71 $(RM
) $(SERVERBIN
)/cgi-bin
/$$file; \
73 -$(RMDIR
) $(SERVERBIN
)/cgi-bin
83 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
91 admin.cgi
: admin.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
93 $(CC
) $(LDFLAGS
) -o
$@ admin.o libcgi.a
$(LIBS
)
100 classes.cgi
: classes.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
102 $(CC
) $(LDFLAGS
) -o
$@ classes.o libcgi.a
$(LIBS
)
109 help.cgi
: help.o ..
/Makedefs libcgi.a
111 $(CC
) $(LDFLAGS
) -o
$@ help.o libcgi.a
$(LIBS
)
118 jobs.cgi
: jobs.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
120 $(CC
) $(LDFLAGS
) -o
$@ jobs.o libcgi.a
$(LIBS
)
127 printers.cgi
: printers.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
129 $(CC
) $(LDFLAGS
) -o
$@ printers.o libcgi.a
$(LIBS
)
136 testcgi
: testcgi.o ..
/Makedefs libcgi.a ..
/cups
/libcups.a
138 $(CC
) $(LDFLAGS
) -o
$@ testcgi.o libcgi.a ..
/cups
/libcups.a \
139 $(COMMONLIBS
) $(SSLLIBS
) $(LIBZ
) $(LIBGSSAPI
)
146 testhi
: testhi.o ..
/Makedefs libcgi.a ..
/cups
/libcups.a
148 $(CC
) $(LDFLAGS
) -o
$@ testhi.o libcgi.a ..
/cups
/libcups.a \
149 $(COMMONLIBS
) $(SSLLIBS
) $(LIBZ
) $(LIBGSSAPI
)
156 testtemplate
: testtemplate.o ..
/Makedefs libcgi.a ..
/cups
/libcups.a
158 $(CC
) $(LDFLAGS
) -o
$@ testtemplate.o libcgi.a ..
/cups
/libcups.a \
159 $(COMMONLIBS
) $(SSLLIBS
) $(LIBZ
) $(LIBGSSAPI
)
170 # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".