2 # "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $"
4 # CGI makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2006 by Easy Software Products.
8 # These coded instructions, statements, and computer programs are the
9 # property of Easy Software Products and are protected by Federal
10 # copyright law. Distribution and use rights are outlined in the file
11 # "LICENSE.txt" which should have been included with this file. If this
12 # file is missing or damaged please contact Easy Software Products
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
27 CGIS
= admin.cgi classes.cgi help.cgi jobs.cgi printers.cgi
28 TARGETS
= libcgi.a
$(CGIS
) testcgi testhi testtemplate
29 LIBOBJS
= help-index.o html.o ipp-var.o search.o template.o var.o
30 OBJS
= $(LIBOBJS
) admin.o classes.o help.o \
31 jobs.o printers.o testcgi.o testhi.o testtemplate.o
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...
62 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/cgi-bin
63 for file in
$(CGIS
); do \
64 $(INSTALL_BIN
) $$file $(SERVERBIN
)/cgi-bin
; \
69 # Uninstall all targets...
73 for file in
$(CGIS
); do \
74 $(RM
) $(SERVERBIN
)/cgi-bin
/$$file; \
76 -$(RMDIR
) $(SERVERBIN
)/cgi-bin
86 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
94 admin.cgi
: admin.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
96 $(CC
) $(LDFLAGS
) -o
$@ admin.o libcgi.a
$(LIBS
)
103 classes.cgi
: classes.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
105 $(CC
) $(LDFLAGS
) -o
$@ classes.o libcgi.a
$(LIBS
)
112 help.cgi
: help.o ..
/Makedefs libcgi.a
114 $(CC
) $(LDFLAGS
) -o
$@ help.o libcgi.a
$(LIBS
)
121 jobs.cgi
: jobs.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
123 $(CC
) $(LDFLAGS
) -o
$@ jobs.o libcgi.a
$(LIBS
)
130 printers.cgi
: printers.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
132 $(CC
) $(LDFLAGS
) -o
$@ printers.o libcgi.a
$(LIBS
)
139 testcgi
: testcgi.o ..
/Makedefs libcgi.a ..
/cups
/libcups.a
141 $(CC
) $(LDFLAGS
) -o
$@ testcgi.o libcgi.a ..
/cups
/libcups.a \
142 $(COMMONLIBS
) $(SSLLIBS
) $(LIBZ
)
149 testhi
: testhi.o ..
/Makedefs libcgi.a ..
/cups
/libcups.a
151 $(CC
) $(LDFLAGS
) -o
$@ testhi.o libcgi.a ..
/cups
/libcups.a \
152 $(COMMONLIBS
) $(SSLLIBS
) $(LIBZ
)
159 testtemplate
: testtemplate.o ..
/Makedefs libcgi.a ..
/cups
/libcups.a
161 $(CC
) $(LDFLAGS
) -o
$@ testtemplate.o libcgi.a ..
/cups
/libcups.a \
162 $(COMMONLIBS
) $(SSLLIBS
) $(LIBZ
)
173 # End of "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $".