2 # "$Id: Makefile 4869 2005-12-06 02:43:40Z mike $"
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
) testcgi testhi
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
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
) $(SERVERBIN
)/cgi-bin
63 for file in
$(CGIS
); do \
64 $(INSTALL_BIN
) $$file $(SERVERBIN
)/cgi-bin
; \
75 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
83 admin.cgi
: admin.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
85 $(CC
) $(LDFLAGS
) -o
$@ admin.o libcgi.a
$(LIBS
)
92 classes.cgi
: classes.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
94 $(CC
) $(LDFLAGS
) -o
$@ classes.o libcgi.a
$(LIBS
)
101 help.cgi
: help.o ..
/Makedefs libcgi.a
103 $(CC
) $(LDFLAGS
) -o
$@ help.o libcgi.a
$(LIBS
)
110 jobs.cgi
: jobs.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
112 $(CC
) $(LDFLAGS
) -o
$@ jobs.o libcgi.a
$(LIBS
)
119 printers.cgi
: printers.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcgi.a
121 $(CC
) $(LDFLAGS
) -o
$@ printers.o libcgi.a
$(LIBS
)
128 testcgi
: testcgi.o ..
/Makedefs libcgi.a
130 $(CC
) $(LDFLAGS
) -o
$@ testcgi.o libcgi.a
$(LIBS
)
137 testhi
: testhi.o ..
/Makedefs libcgi.a
139 $(CC
) $(LDFLAGS
) -o
$@ testhi.o libcgi.a
$(LIBS
)
150 # End of "$Id: Makefile 4869 2005-12-06 02:43:40Z mike $".