]>
git.ipfire.org Git - thirdparty/cups.git/blob - scripting/php/Makefile
2 # "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $"
4 # PHP Makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
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-9603
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org/
25 include ..
/..
/Makedefs
29 # Where to install and how to compile the PHP module...
32 PHPDIR
= $(BUILDROOT
)`$(PHPCONFIG) --extension-dir`
33 OPTIONS
= -I..
/..
`$(PHPCONFIG) --includes`
44 # Targets in this directory...
58 # Remove object and target files...
62 $(RM
) $(OBJS
) $(PHPCUPS
)
66 # Update dependencies (without system header dependencies...)
70 makedepend
-Y
-I..
/..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
74 # Install object and target files...
78 echo Installing
$(PHPCUPS
) in
$(PHPDIR
)
79 $(INSTALL_DIR
) $(PHPDIR
)
80 $(INSTALL_BIN
) $(PHPCUPS
) $(PHPDIR
)
84 # Uninstall object and target files...
88 $(RM
) $(PHPDIR
)/$(PHPCUPS
)
96 phpcups.so
: $(OBJS
) ..
/..
/Makedefs
98 if
test `uname` = Darwin
; then \
99 DSOFLAGS
="-bundle -flat_namespace -undefined suppress"; \
101 DSOFLAGS
="$(DSOFLAGS)"; \
103 echo
$(DSO
) $$DSOFLAGS $(ARCHFLAGS
) -o
$@
$(OBJS
) -L..
/..
/cups
$(LIBS
); \
104 $(DSO
) $$DSOFLAGS $(ARCHFLAGS
) -o
$@
$(OBJS
) -L..
/..
/cups
$(LIBS
)
115 # End of "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $".