]> git.ipfire.org Git - thirdparty/cups.git/blame - scripting/php/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / scripting / php / Makefile
CommitLineData
ef416fc2 1#
f7faf1f5 2# "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $"
ef416fc2 3#
4# PHP Makefile for the Common UNIX Printing System (CUPS).
5#
bc44d920 6# Copyright 2007 by Apple Inc.
09a101d6 7# Copyright 1997-2007 by Easy Software Products, all rights reserved.
ef416fc2 8#
9# These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 14#
15
16include ../../Makedefs
17
18
19#
b423cd4c 20# Where to install and how to compile the PHP module...
ef416fc2 21#
22
b423cd4c 23PHPDIR = $(BUILDROOT)`$(PHPCONFIG) --extension-dir`
24OPTIONS = -I../.. `$(PHPCONFIG) --includes`
b423cd4c 25
ef416fc2 26
27#
28# Object files...
29#
30
31OBJS = phpcups.o
32
33
34#
35# Targets in this directory...
36#
37
757d2cad 38PHPCUPS = phpcups.so
ef416fc2 39
40
41#
42# Make all targets...
43#
44
757d2cad 45all: $(PHPCUPS)
ef416fc2 46
47
48#
49# Remove object and target files...
50#
51
52clean:
757d2cad 53 $(RM) $(OBJS) $(PHPCUPS)
ef416fc2 54
55
56#
57# Update dependencies (without system header dependencies...)
58#
59
60depend:
61 makedepend -Y -I../.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
62
63
64#
65# Install object and target files...
66#
67
68install: all
757d2cad 69 echo Installing $(PHPCUPS) in $(PHPDIR)
ef416fc2 70 $(INSTALL_DIR) $(PHPDIR)
757d2cad 71 $(INSTALL_BIN) $(PHPCUPS) $(PHPDIR)
09a101d6 72 if test "x$(SYMROOT)" != x; then \
73 $(INSTALL_DIR) $(SYMROOT); \
74 cp $(PHPCUPS) $(SYMROOT); \
75 fi
757d2cad 76
77
78#
79# Uninstall object and target files...
80#
81
82uninstall:
83 $(RM) $(PHPDIR)/$(PHPCUPS)
84 -$(RMDIR) $(PHPDIR)
ef416fc2 85
86
87#
88# phpcups.so
89#
90
91phpcups.so: $(OBJS) ../../Makedefs
92 echo Linking $@...
93 if test `uname` = Darwin; then \
09a101d6 94 DSOFLAGS="-bundle -flat_namespace -undefined suppress $(RC_CFLAGS)"; \
ef416fc2 95 else \
96 DSOFLAGS="$(DSOFLAGS)"; \
97 fi; \
80ca4592 98 echo $(DSO) $$DSOFLAGS $(ARCHFLAGS) -o $@ $(OBJS) -L../../cups $(LIBS); \
99 $(DSO) $$DSOFLAGS $(ARCHFLAGS) -o $@ $(OBJS) -L../../cups $(LIBS)
ef416fc2 100
101
102#
103# Dependencies...
104#
105
106include Dependencies
107
108
109#
f7faf1f5 110# End of "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $".
ef416fc2 111#