]> 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#
09a101d6 6# Copyright 1997-2007 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`
b423cd4c 34
ef416fc2 35
36#
37# Object files...
38#
39
40OBJS = phpcups.o
41
42
43#
44# Targets in this directory...
45#
46
757d2cad 47PHPCUPS = phpcups.so
ef416fc2 48
49
50#
51# Make all targets...
52#
53
757d2cad 54all: $(PHPCUPS)
ef416fc2 55
56
57#
58# Remove object and target files...
59#
60
61clean:
757d2cad 62 $(RM) $(OBJS) $(PHPCUPS)
ef416fc2 63
64
65#
66# Update dependencies (without system header dependencies...)
67#
68
69depend:
70 makedepend -Y -I../.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
71
72
73#
74# Install object and target files...
75#
76
77install: all
757d2cad 78 echo Installing $(PHPCUPS) in $(PHPDIR)
ef416fc2 79 $(INSTALL_DIR) $(PHPDIR)
757d2cad 80 $(INSTALL_BIN) $(PHPCUPS) $(PHPDIR)
09a101d6 81 if test "x$(SYMROOT)" != x; then \
82 $(INSTALL_DIR) $(SYMROOT); \
83 cp $(PHPCUPS) $(SYMROOT); \
84 fi
757d2cad 85
86
87#
88# Uninstall object and target files...
89#
90
91uninstall:
92 $(RM) $(PHPDIR)/$(PHPCUPS)
93 -$(RMDIR) $(PHPDIR)
ef416fc2 94
95
96#
97# phpcups.so
98#
99
100phpcups.so: $(OBJS) ../../Makedefs
101 echo Linking $@...
102 if test `uname` = Darwin; then \
09a101d6 103 DSOFLAGS="-bundle -flat_namespace -undefined suppress $(RC_CFLAGS)"; \
ef416fc2 104 else \
105 DSOFLAGS="$(DSOFLAGS)"; \
106 fi; \
80ca4592 107 echo $(DSO) $$DSOFLAGS $(ARCHFLAGS) -o $@ $(OBJS) -L../../cups $(LIBS); \
108 $(DSO) $$DSOFLAGS $(ARCHFLAGS) -o $@ $(OBJS) -L../../cups $(LIBS)
ef416fc2 109
110
111#
112# Dependencies...
113#
114
115include Dependencies
116
117
118#
f7faf1f5 119# End of "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $".
ef416fc2 120#