4 # CGI makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2005 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
)
29 LIBOBJS
= html.o ipp-var.o template.o var.o
30 OBJS
= $(LIBOBJS
) admin.o classes.o help.o jobs.o printers.o
41 # Clean all object files...
45 $(RM
) $(OBJS
) $(TARGETS
)
49 # Update dependencies (without system header dependencies...)
53 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
57 # Install all targets...
61 $(INSTALL_DIR
) $(SERVERBIN
)/cgi-bin
62 for file in
$(CGIS
); do \
63 $(INSTALL_BIN
) $$file $(SERVERBIN
)/cgi-bin
; \
74 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
82 admin.cgi
: admin.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
84 $(CC
) $(LDFLAGS
) -o
$@ admin.o libcgi.a
$(LIBS
)
91 classes.cgi
: classes.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
93 $(CC
) $(LDFLAGS
) -o
$@ classes.o libcgi.a
$(LIBS
)
100 help.cgi
: help.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
102 $(CC
) $(LDFLAGS
) -o
$@ help.o libcgi.a
$(LIBS
)
109 jobs.cgi
: jobs.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
111 $(CC
) $(LDFLAGS
) -o
$@ jobs.o libcgi.a
$(LIBS
)
118 printers.cgi
: printers.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
120 $(CC
) $(LDFLAGS
) -o
$@ printers.o libcgi.a
$(LIBS
)