]>
Commit | Line | Data |
---|---|---|
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 | # | |
50fe7201 | 6 | # Copyright 2007-2008 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 | ||
16 | include ../../Makedefs | |
17 | ||
18 | ||
19 | # | |
b423cd4c | 20 | # Where to install and how to compile the PHP module... |
ef416fc2 | 21 | # |
22 | ||
b423cd4c | 23 | PHPDIR = $(BUILDROOT)`$(PHPCONFIG) --extension-dir` |
7a14d768 | 24 | OPTIONS = $(PHPOPTIONS) |
b423cd4c | 25 | |
ef416fc2 | 26 | |
27 | # | |
28 | # Object files... | |
29 | # | |
30 | ||
31 | OBJS = phpcups.o | |
32 | ||
33 | ||
34 | # | |
35 | # Targets in this directory... | |
36 | # | |
37 | ||
757d2cad | 38 | PHPCUPS = phpcups.so |
ef416fc2 | 39 | |
40 | ||
41 | # | |
42 | # Make all targets... | |
43 | # | |
44 | ||
757d2cad | 45 | all: $(PHPCUPS) |
ef416fc2 | 46 | |
47 | ||
c9fc04c6 MS |
48 | # |
49 | # Make library targets... | |
50 | # | |
51 | ||
52 | libs: | |
53 | ||
54 | ||
5f64df29 MS |
55 | # |
56 | # Make unit tests... | |
57 | # | |
58 | ||
59 | unittests: | |
60 | ||
61 | ||
ef416fc2 | 62 | # |
63 | # Remove object and target files... | |
64 | # | |
65 | ||
66 | clean: | |
757d2cad | 67 | $(RM) $(OBJS) $(PHPCUPS) |
ef416fc2 | 68 | |
69 | ||
70 | # | |
71 | # Update dependencies (without system header dependencies...) | |
72 | # | |
73 | ||
74 | depend: | |
75 | makedepend -Y -I../.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
76 | ||
77 | ||
78 | # | |
50fe7201 | 79 | # Install all targets... |
ef416fc2 | 80 | # |
81 | ||
50fe7201 MS |
82 | install: all install-data install-headers install-libs install-exec |
83 | ||
84 | ||
85 | # | |
86 | # Install data files... | |
87 | # | |
88 | ||
89 | install-data: | |
90 | ||
91 | ||
92 | # | |
93 | # Install programs... | |
94 | # | |
95 | ||
96 | install-exec: | |
757d2cad | 97 | echo Installing $(PHPCUPS) in $(PHPDIR) |
ef416fc2 | 98 | $(INSTALL_DIR) $(PHPDIR) |
839a51c8 | 99 | $(INSTALL_LIB) $(PHPCUPS) $(PHPDIR) |
09a101d6 | 100 | if test "x$(SYMROOT)" != x; then \ |
101 | $(INSTALL_DIR) $(SYMROOT); \ | |
102 | cp $(PHPCUPS) $(SYMROOT); \ | |
103 | fi | |
757d2cad | 104 | |
105 | ||
50fe7201 MS |
106 | # |
107 | # Install headers... | |
108 | # | |
109 | ||
110 | install-headers: | |
111 | ||
112 | ||
113 | # | |
114 | # Install libraries... | |
115 | # | |
116 | ||
117 | install-libs: | |
118 | ||
119 | ||
757d2cad | 120 | # |
121 | # Uninstall object and target files... | |
122 | # | |
123 | ||
124 | uninstall: | |
125 | $(RM) $(PHPDIR)/$(PHPCUPS) | |
126 | -$(RMDIR) $(PHPDIR) | |
ef416fc2 | 127 | |
128 | ||
129 | # | |
130 | # phpcups.so | |
131 | # | |
132 | ||
133 | phpcups.so: $(OBJS) ../../Makedefs | |
134 | echo Linking $@... | |
135 | if test `uname` = Darwin; then \ | |
09a101d6 | 136 | DSOFLAGS="-bundle -flat_namespace -undefined suppress $(RC_CFLAGS)"; \ |
ef416fc2 | 137 | else \ |
138 | DSOFLAGS="$(DSOFLAGS)"; \ | |
139 | fi; \ | |
80ca4592 | 140 | echo $(DSO) $$DSOFLAGS $(ARCHFLAGS) -o $@ $(OBJS) -L../../cups $(LIBS); \ |
141 | $(DSO) $$DSOFLAGS $(ARCHFLAGS) -o $@ $(OBJS) -L../../cups $(LIBS) | |
ef416fc2 | 142 | |
143 | ||
144 | # | |
145 | # Dependencies... | |
146 | # | |
147 | ||
148 | include Dependencies | |
149 | ||
150 | ||
151 | # | |
f7faf1f5 | 152 | # End of "$Id: Makefile 3572 2003-04-08 19:56:25Z mike $". |
ef416fc2 | 153 | # |