]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wxSWIG/Makefile.in
unicode compilation fix
[wxWidgets.git] / wxPython / wxSWIG / Makefile.in
1 #######################################################################
2 # $Header$
3 # Simplified Wrapper and Interface Generator (SWIG)
4 #
5 # Makefile for version 1.1
6 # Dave Beazley
7 # January 7, 1997
8 #
9 # This makefile is now mostly constructed by ./configure.
10 #
11 # $Log$
12 # Revision 1.1 2002/04/29 19:56:47 RD
13 # Since I have made several changes to SWIG over the years to accomodate
14 # special cases and other things in wxPython, and since I plan on making
15 # several more, I've decided to put the SWIG sources in wxPython's CVS
16 # instead of relying on maintaining patches. This effectivly becomes a
17 # fork of an obsolete version of SWIG, :-( but since SWIG 1.3 still
18 # doesn't have some things I rely on in 1.1, not to mention that my
19 # custom patches would all have to be redone, I felt that this is the
20 # easier road to take.
21 #
22 # Revision 1.3 1999/08/17 03:31:30 beazley
23 # Minor cleanup. Removed Perl4
24 #
25 # Revision 1.2 1999/02/28 02:44:43 beazley
26 # Initial cleanup
27 #
28 # Revision 1.1.1.1 1999/02/28 02:00:49 beazley
29 # Swig1.1
30 #
31 # Revision 1.1 1996/08/12 01:55:02 dmb
32 # Initial revision
33 #
34 #######################################################################
35
36 srcdir = @srcdir@
37 VPATH = @srcdir@
38
39 #
40 # Set the prefix below to indicate where you want SWIG to install its
41 # files. Normally this is /usr/local
42 #
43
44 prefix = @prefix@
45 exec_prefix= @exec_prefix@
46
47 # Location of the SWIG library. Is normally put in /usr/local/lib/swig_lib
48 # The SWIG library contains configuration files and library modules
49 # so you should install it someplace where it can be easily accessed.
50
51 SWIG_LIB = $(prefix)/lib/swig_lib
52
53 # Change these prefixes to set where you would like the
54 # SWIG binary file (swig) and C library (libswig.a) installed.
55 # Usually you don't need to change these unless you are
56 # installing SWIG into a CPU dependent directory such as /usr/local/bin/cpu-type/bin
57 #
58
59 BIN_DIR = $(exec_prefix)/bin
60 LIB_DIR = $(exec_prefix)/lib
61
62 # Other installation locations. Shouldn't need to change these unless you want
63
64 INCLUDE_DIR = $(prefix)/include
65 MAN_DIR = $(prefix)/man/man1
66
67 SHELL = /bin/sh
68
69 # --with-PACKAGE options for configure script.
70 WITH=
71
72 #
73 #
74 #
75 # Rules for creation of a .o file from .cxx
76
77 all: wxswig
78 @echo "Compilation complete."
79
80 wxswig: Makefiles
81 @echo "Making the SWIG Parser..."
82 @cd SWIG; $(MAKE)
83 @echo "Make Modules..."
84 @cd Modules; $(MAKE)
85
86 Makefiles: config.status
87 @cd SWIG; echo "making Makefile in subdirectory SWIG"; $(MAKE) Makefile
88 @cd Modules; echo "making Makefile in subdirectory Modules"; $(MAKE) Makefile
89
90 Makefile: Makefile.in config.status
91 CONFIG_FILES=Makefile $(SHELL) config.status
92
93 config.status: $(srcdir)/configure
94 if test -f config.status; \
95 then $(SHELL) config.status --recheck; \
96 $(SHELL) config.status; \
97 else $(SHELL) $(srcdir)/configure $(WITH); \
98 fi
99
100 .PRECIOUS: config.status swig
101
102 clean:
103 rm -f *.o *.so libswig.a swig *~ core
104 @cd SWIG; $(MAKE) clean
105 @cd Modules; $(MAKE) clean
106 @cd Runtime; $(MAKE) clean
107
108 nuke: clean
109 @cd SWIG; $(MAKE) nuke
110 @cd Modules; $(MAKE) nuke
111 @cd Examples; $(MAKE) nuke
112 @cd Tests; $(MAKE) clean
113 @cd Runtime; $(MAKE) clean
114 rm -f Makefile Makefile.template config.*
115
116 doc: swig
117 @echo "Building Documentation for SWIG library..."
118 ./swig -Iswig_lib -d ./Doc/swiglib ./swig_lib/autodoc.i
119 @rm -f swig_lib/autodoc_wrap*
120
121
122 runtime: swig
123 @cd Runtime; $(MAKE)
124
125 test::
126 cd Tests; $(MAKE) parser; $(MAKE) doc; $(MAKE) huge;
127 @echo "See test.log for errors"
128 @echo "type 'make testclean' to cleanup."
129
130 testbuild::
131 cd Tests; $(MAKE) build
132
133 testall::
134 cd Tests; $(MAKE) all; $(MAKE) clean
135
136 # Only do this before releasing a distribution
137
138 testclean::
139 cd Tests; $(MAKE) clean;
140
141
142 ## # Install the SWIG program
143 ##
144 ## INSTALL = ./install-sh -c
145 ## INSTALL_DATA = ${INSTALL} -m 644
146 ## INSTALL_PROGRAM= ${INSTALL} -m 755
147 ##
148 ## install: install-main install-lib install-runtime
149 ## @echo "Installation complete"
150 ##
151 ## install-runtime:
152 ## @cd Runtime; $(MAKE) install
153 ##
154 ## smallinstall: install-main
155 ##
156 ## install-main:
157 ## @for i in $(LIB_DIR) $(INCLUDE_DIR) $(BIN_DIR) $(prefix)/man $(MAN_DIR); \
158 ## do \
159 ## if [ ! -d $$i ] ; then \
160 ## mkdir $$i; \
161 ## echo "Making directory $$i"; \
162 ## chmod 755 $$i;\
163 ## else true; \
164 ## fi; \
165 ## done;
166 ## @echo "Installing $(BIN_DIR)/swig"
167 ## @$(INSTALL_PROGRAM) swig $(BIN_DIR)/swig
168 ## @echo "Installing $(LIB_DIR)/libswig.a..."
169 ## @$(INSTALL_DATA) libswig.a $(LIB_DIR)/libswig.a
170 ## @echo "Installing $(INCLUDE_DIR)/swig.h..."
171 ## @$(INSTALL_DATA) Include/swig.h $(INCLUDE_DIR)/swig.h
172 ## @echo "Installing $(INCLUDE_DIR)/swigver.h..."
173 ## @$(INSTALL_DATA) Include/swigver.h $(INCLUDE_DIR)/swigver.h
174 ## @echo "Installing $(MAN_DIR)/swig.1..."
175 ## @$(INSTALL_DATA) swig.1 $(MAN_DIR)/swig.1
176 ## install-lib:
177 ## @for i in $(SWIG_LIB) ; \
178 ## do \
179 ## if [ ! -d $$i ] ; then \
180 ## mkdir $$i; \
181 ## echo "Making directory $$i"; \
182 ## chmod 755 $$i;\
183 ## else true; \
184 ## fi; \
185 ## done;
186 ## @echo "Installing the SWIG library"
187 ## # cd $(SWIG_LIB); rm -rf *
188 ## @for i in $(SWIG_LIB)/tcl $(SWIG_LIB)/perl5 $(SWIG_LIB)/python $(SWIG_LIB)/guile $(SWIG_LIB)/config ; \
189 ## do \
190 ## if [ ! -d $$i ] ; then \
191 ## mkdir $$i; \
192 ## echo "Making directory $$i"; \
193 ## chmod 755 $$i;\
194 ## else true; \
195 ## fi; \
196 ## done;
197 ## @cd swig_lib; for i in *.i *.swg; \
198 ## do \
199 ## echo "Installing swig_lib/$$i"; \
200 ## ../$(INSTALL_DATA) $$i $(SWIG_LIB)/$$i; \
201 ## done;
202 ## @cd swig_lib/tcl; for i in *.i *.swg Makefile; \
203 ## do \
204 ## echo "Installing swig_lib/tcl/$$i"; \
205 ## ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/tcl/$$i; \
206 ## done;
207 ## @cd swig_lib/perl5; for i in *.i *.swg Makefile Makefile.pl; \
208 ## do \
209 ## echo "Installing swig_lib/perl5/$$i"; \
210 ## ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/perl5/$$i; \
211 ## done;
212 ## @cd swig_lib/python; for i in *.i *.swg Makefile; \
213 ## do \
214 ## echo "Installing swig_lib/python/$$i"; \
215 ## ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/python/$$i; \
216 ## done;
217 ## @cd swig_lib/guile; for i in *.i *.swg; \
218 ## do \
219 ## echo "Installing swig_lib/guile/$$i"; \
220 ## ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/guile/$$i; \
221 ## done;
222 ## @cd swig_lib/config; for i in *.swg; \
223 ## do \
224 ## echo "Installing swig_lib/config/$$i"; \
225 ## ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/config/$$i; \
226 ## done;
227 ## @echo "Installing Makefile"
228 ## $(INSTALL_DATA) Makefile.template $(SWIG_LIB)/Makefile
229
230
231