]> 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#
2# "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $"
3#
4# PHP Makefile for the Common UNIX Printing System (CUPS).
5#
b423cd4c 6# Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 7#
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
13# at:
14#
15# Attn: CUPS Licensing Information
16# Easy Software Products
17# 44141 Airport View Drive, Suite 204
b423cd4c 18# Hollywood, Maryland 20636 USA
ef416fc2 19#
20# Voice: (301) 373-9603
21# EMail: cups-info@cups.org
b423cd4c 22# WWW: http://www.cups.org/
ef416fc2 23#
24
25include ../../Makedefs
26
27
28#
b423cd4c 29# Where to install and how to compile the PHP module...
ef416fc2 30#
31
b423cd4c 32PHPDIR = $(BUILDROOT)`$(PHPCONFIG) --extension-dir`
33OPTIONS = -I../.. `$(PHPCONFIG) --includes`
34PHPLIBS = `$(PHPCONFIG) --ldflags` `$(PHPCONFIG) --libs`
35
ef416fc2 36
37#
38# Object files...
39#
40
41OBJS = phpcups.o
42
43
44#
45# Targets in this directory...
46#
47
48TARGETS = phpcups.so
49
50
51#
52# Make all targets...
53#
54
55all: $(TARGETS)
56
57
58#
59# Remove object and target files...
60#
61
62clean:
63 $(RM) $(OBJS) $(TARGETS)
64
65
66#
67# Update dependencies (without system header dependencies...)
68#
69
70depend:
71 makedepend -Y -I../.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
72
73
74#
75# Install object and target files...
76#
77
78install: all
79 echo Installing $(TARGETS) in $(PHPDIR)
80 $(INSTALL_DIR) $(PHPDIR)
81 cp $(TARGETS) $(PHPDIR)
82
83
84#
85# phpcups.so
86#
87
88phpcups.so: $(OBJS) ../../Makedefs
89 echo Linking $@...
90 if test `uname` = Darwin; then \
91 DSOFLAGS="-bundle -flat_namespace -undefined suppress"; \
92 else \
93 DSOFLAGS="$(DSOFLAGS)"; \
94 fi; \
95 echo $(DSO) $$DSOFLAGS -o $@ $(OBJS) -L../../cups -lcups $(PHPLIBS); \
96 $(DSO) $$DSOFLAGS -o $@ $(OBJS) -L../../cups -lcups $(PHPLIBS)
97
98
99#
100# Dependencies...
101#
102
103include Dependencies
104
105
106#
107# End of "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $".
108#