2 # "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $"
4 # PHP Makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 2007-2008 by Apple Inc.
7 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
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/".
16 include ..
/..
/Makedefs
20 # Where to install and how to compile the PHP module...
23 PHPDIR
= $(BUILDROOT
)`$(PHPCONFIG) --extension-dir`
24 OPTIONS
= $(PHPOPTIONS
)
35 # Targets in this directory...
49 # Make library targets...
56 # Remove object and target files...
60 $(RM
) $(OBJS
) $(PHPCUPS
)
64 # Update dependencies (without system header dependencies...)
68 makedepend
-Y
-I..
/..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
72 # Install all targets...
75 install: all install-data install-headers install-libs install-exec
79 # Install data files...
90 echo Installing
$(PHPCUPS
) in
$(PHPDIR
)
91 $(INSTALL_DIR
) $(PHPDIR
)
92 $(INSTALL_LIB
) $(PHPCUPS
) $(PHPDIR
)
93 if
test "x$(SYMROOT)" != x
; then \
94 $(INSTALL_DIR
) $(SYMROOT
); \
95 cp
$(PHPCUPS
) $(SYMROOT
); \
107 # Install libraries...
114 # Uninstall object and target files...
118 $(RM
) $(PHPDIR
)/$(PHPCUPS
)
126 phpcups.so
: $(OBJS
) ..
/..
/Makedefs
128 if
test `uname` = Darwin
; then \
129 DSOFLAGS
="-bundle -flat_namespace -undefined suppress $(RC_CFLAGS)"; \
131 DSOFLAGS
="$(DSOFLAGS)"; \
133 echo
$(DSO
) $$DSOFLAGS $(ARCHFLAGS
) -o
$@
$(OBJS
) -L..
/..
/cups
$(LIBS
); \
134 $(DSO
) $$DSOFLAGS $(ARCHFLAGS
) -o
$@
$(OBJS
) -L..
/..
/cups
$(LIBS
)
145 # End of "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $".