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