1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521
|
# Generated automatically from Makefile.in by configure.
#######################################################################
# $Header: /cvs/projects/SWIG/Makefile.in,v 1.43.2.12.2.18 2002/01/28 20:40:54 cheetah Exp $
#######################################################################
prefix = /usr
exec_prefix = ${prefix}
srcdir = .
##############################################################################
# Compiler and system configuration
##############################################################################
SHELL = /bin/sh
CC = gcc
CFLAGS = -g -O2
CXX = c++
LIBS = -ldl
AR = ar
RANLIB = ranlib
# Note: Files in `SWIG_LIB' are machine independent so we use `prefix'
# instead of `exec_prefix' or, derivatively, `libdir'.
SWIG_LIB = /usr/share/swig1.3
BIN_DIR = ${exec_prefix}/bin
RELEASESUFFIX = -1.3
TARGET = swig$(RELEASESUFFIX)
SOURCE = Source
SOURCEDIRS = `ls $(SOURCE)`
swig: Modules1.1 Swig Preprocessor CParse DOH runtime
$(CXX) -o $(TARGET) \
$(SOURCE)/Modules1.1/libmodules11.a \
$(SOURCE)/CParse/libcparse.a \
$(SOURCE)/Preprocessor/libcpp.a \
$(SOURCE)/Swig/libswig.a \
$(SOURCE)/DOH/libdoh.a
Modules1.1: Source/Include/swigconfig.h
@cd $(SOURCE)/Modules1.1; $(MAKE)
Swig: Source/Include/swigconfig.h
@cd $(SOURCE)/Swig; $(MAKE)
Preprocessor: Source/Include/swigconfig.h
@cd $(SOURCE)/Preprocessor; $(MAKE)
LParse: Source/Include/swigconfig.h
@cd $(SOURCE)/LParse; $(MAKE)
CParse: Source/Include/swigconfig.h
@cd $(SOURCE)/CParse; $(MAKE)
DOH: Source/Include/swigconfig.h
@cd $(SOURCE)/DOH; $(MAKE)
Modules: Source/Include/swigconfig.h
@cd $(SOURCE)/Modules; $(MAKE)
.PHONY: SWIG1.1 Modules1.1 Swig Preprocessor LParse \
Experiment Swim SWILL DOH Swithe
# Config file must be generated at make time, rather than at configure
# time because it paths need to be substituted.
Source/Include/swigconfig.h: Source/Include/swigconfig.h.in Makefile.in config.status
sed 's|@-swig_lib-@|$(SWIG_LIB)|g;s|@-exec_prefix-@|$(exec_prefix)|g;s|@-release_suffix-@|$(RELEASESUFFIX)|g' Source/Include/swigconfig.h.in > $@
####
skip-tcl = [ -z "-I/usr/include" -o -z "-L/usr/lib -ltcl8.3${TCL_DBGX}" ]
skip-perl = [ -z "perl" -o -z "/usr/lib/perl/5.6.1/CORE" ]
skip-python = [ -z "-I/usr/include/python2.1 -I/usr/lib/python2.1/config" -o -z "/usr/lib/python2.1/config" ]
skip-java = [ -z "java" -o -z "javac" -o -z "" ]
skip-guile = [ -z "-I/usr/include" -o -z "/usr/lib" ]
skip-mzscheme = [ -z "/usr/bin/mzc" ]
skip-ruby = [ -z "/usr/bin/ruby" -o -z "-I/usr/lib/ruby/1.6/i386-linux" -o -z "/usr/lib/ruby/1.6/i386-linux" ]
skip-php4 = [ -z "@PHP4BIN@" -o -z "-I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM" ]
#####################################################################
# Runtime libraries
#####################################################################
runtime:
-$(skip-tcl) || (cd Runtime; $(MAKE) tcl)
-$(skip-python) || (cd Runtime; $(MAKE) python)
-$(skip-perl) || (cd Runtime; $(MAKE) perl5)
-$(skip-ruby) || (cd Runtime; $(MAKE) ruby)
-$(skip-guile) || (cd Runtime; $(MAKE) guile)
-$(skip-mzscheme) || (cd Runtime; $(MAKE) mzscheme)
-$(skip-php4) || (cd Runtime; $(MAKE) php4)
#####################################################################
# CHECK
#####################################################################
CHECK_CLEAN = check
chk-swiglib = /home/torsten/packages/swig/swig1.3-1.3.11/Lib
chk = $(MAKE) -k -s SWIG_LIB=$(chk-swiglib) SWIG=/home/torsten/packages/swig/swig1.3-1.3.11/$(TARGET) $(CHECK_CLEAN)
check-aliveness:
test -x ./$(TARGET)
./$(TARGET) -version
./$(TARGET) -help
$(skip-tcl) || ./$(TARGET) -tcl -help
$(skip-perl) || ./$(TARGET) -perl -help
$(skip-python) || ./$(TARGET) -python -help
$(skip-java) || ./$(TARGET) -java -help
$(skip-guile) || ./$(TARGET) -guile -help
$(skip-mzscheme) || ./$(TARGET) -mzscheme -help
$(skip-ruby) || ./$(TARGET) -ruby -help
TCL_EXAMPLES = class constants enum funcptr import multimap pointer reference simple value variables
PERL5_EXAMPLES = class constants funcptr import multimap pointer reference shadow simple value variables
PYTHON_EXAMPLES = class constants enum funcattr funcptr import multimap mpointer pointer reference shadow simple template value variables
JAVA_EXAMPLES = class constants enum multimap native pointer reference simple template typemap variables
GUILE_EXAMPLES = constants matrix simple port multimap multivalue
MZSCHEME_EXAMPLES = multimap simple
RUBY_EXAMPLES = class constants enum funcptr multimap pointer reference simple value variables
check-examples: check-tcl-examples check-perl5-examples check-python-examples \
check-java-examples check-guile-examples check-mzscheme-examples \
check-ruby-examples
check-tcl-examples:
@if $(skip-tcl); then \
echo skipping Tcl $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(TCL_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/tcl/$$a; \
(cd Examples/tcl/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-perl5-examples:
@if $(skip-perl); then \
echo skipping Perl $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(PERL5_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/perl5/$$a; \
(cd Examples/perl5/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-python-examples:
@if $(skip-python); then \
echo skipping Python $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(PYTHON_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/python/$$a; \
(cd Examples/python/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-java-examples:
@if $(skip-java); then \
echo skipping Java $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(JAVA_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/java/$$a; \
(cd Examples/java/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-guile-examples:
@if $(skip-guile); then \
echo skipping Guile $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(GUILE_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/guile/$$a; \
(cd Examples/guile/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-mzscheme-examples:
@if $(skip-mzscheme); then \
echo skipping MzScheme $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(MZSCHEME_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/mzscheme/$$a; \
(cd Examples/mzscheme/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-ruby-examples:
@if $(skip-ruby); then \
echo skipping Ruby $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(RUBY_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/ruby/$$a; \
(cd Examples/ruby/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-test-suite: check-tcl-test-suite check-perl5-test-suite check-python-test-suite \
check-java-test-suite check-guile-test-suite check-mzscheme-test-suite \
check-ruby-test-suite
check-tcl-test-suite:
@if $(skip-tcl); then \
echo skipping Tcl test-suite $(CHECK_CLEAN); \
else \
passed=true; \
(cd Examples/test-suite/tcl && $(chk)) \
|| passed=false; \
test $$passed = true; \
fi
check-perl5-test-suite:
@if $(skip-perl); then \
echo skipping Perl5 test-suite $(CHECK_CLEAN); \
else \
passed=true; \
(cd Examples/test-suite/perl5 && $(chk)) \
|| passed=false; \
test $$passed = true; \
fi
check-python-test-suite:
@if $(skip-python); then \
echo skipping Python test-suite $(CHECK_CLEAN); \
else \
passed=true; \
(cd Examples/test-suite/python && $(chk)) \
|| passed=false; \
test $$passed = true; \
fi
check-java-test-suite:
@if $(skip-java); then \
echo skipping Java test-suite $(CHECK_CLEAN); \
else \
passed=true; \
(cd Examples/test-suite/java && $(chk)) \
|| passed=false; \
test $$passed = true; \
fi
check-guile-test-suite:
@if $(skip-guile); then \
echo skipping Guile test-suite $(CHECK_CLEAN); \
else \
passed=true; \
(cd Examples/test-suite/guile && $(chk)) \
|| passed=false; \
test $$passed = true; \
fi
check-mzscheme-test-suite:
@if $(skip-mzscheme); then \
echo skipping Mzscheme test-suite $(CHECK_CLEAN); \
else \
passed=true; \
(cd Examples/test-suite/mzscheme && $(chk)) \
|| passed=false; \
test $$passed = true; \
fi
check-ruby-test-suite:
@if $(skip-ruby); then \
echo skipping Ruby test-suite $(CHECK_CLEAN); \
else \
passed=true; \
(cd Examples/test-suite/ruby && $(chk)) \
|| passed=false; \
test $$passed = true; \
fi
TCL_GIFPLOT_EXAMPLES = full mandel simple
PERL_GIFPLOT_EXAMPLES = full shadow simple
PYTHON_GIFPLOT_EXAMPLES = full shadow simple
JAVA_GIFPLOT_EXAMPLES = full shadow simple
GUILE_GIFPLOT_EXAMPLES = full simple
RUBY_GIFPLOT_EXAMPLES = full shadow simple
check-gifplot-examples: gifplot-library check-tcl-gifplot check-perl-gifplot check-python-gifplot check-java-gifplot check-guile-gifplot check-ruby-gifplot
gifplot-library:
@echo $(CHECK_CLEAN)ing Examples/GIFPlot/Lib
@cd Examples/GIFPlot/Lib ; $(MAKE) -k -s $(CHECK_CLEAN)
check-tcl-gifplot:
@if $(skip-tcl); then \
echo skipping Tcl $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(TCL_GIFPLOT_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/GIFPlot/Tcl/$$a; \
(cd Examples/GIFPlot/Tcl/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-perl-gifplot:
@if $(skip-perl); then \
echo skipping Perl $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(PERL_GIFPLOT_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/GIFPlot/Perl/$$a; \
(cd Examples/GIFPlot/Perl/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-python-gifplot:
@if $(skip-python); then \
echo skipping Python $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(PYTHON_GIFPLOT_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/GIFPlot/Python/$$a; \
(cd Examples/GIFPlot/Python/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-java-gifplot:
@if $(skip-java); then \
echo skipping Java $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(JAVA_GIFPLOT_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/GIFPlot/Java/$$a; \
(cd Examples/GIFPlot/Java/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-guile-gifplot:
@if $(skip-guile); then \
echo skipping Guile $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(GUILE_GIFPLOT_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/GIFPlot/Guile/$$a; \
(cd Examples/GIFPlot/Guile/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check-ruby-gifplot:
@if $(skip-ruby); then \
echo skipping Ruby $(CHECK_CLEAN); \
else \
passed=true; \
for a in $(RUBY_GIFPLOT_EXAMPLES); do \
echo $(CHECK_CLEAN)ing Examples/GIFPlot/Ruby/$$a; \
(cd Examples/GIFPlot/Ruby/$$a && $(chk)) \
|| passed=false; \
done; \
test $$passed = true; \
fi
check: check-aliveness check-examples check-gifplot-examples check-test-suite
#####################################################################
# CLEAN
#####################################################################
clean: clean-objects clean-examples clean-gifplot-examples clean-test-suite
clean-objects:
@for i in $(SOURCEDIRS) ; \
do \
echo cleaning $(SOURCE)/$$i; \
if [ -d $(SOURCE)/$$i -a -f $(SOURCE)/$$i/Makefile ]; then \
(cd $(SOURCE)/$$i; $(MAKE) -s clean) ; \
fi \
done;
@echo cleaning Runtime
@cd Runtime; $(MAKE) -s clean
@rm -f $(TARGET)
distclean-dead = config.status config.log config.cache \
Examples/Makefile Examples/guile/Makefile Examples/GIFPlot/Makefile Examples/GIFPlot/Lib/Makefile Makefile Runtime/Makefile Source/Include/swigver.h Source/CParse/Makefile Source/Modules/Makefile Source/Modules1.1/Makefile Source/Preprocessor/Makefile Source/Swig/Makefile
distclean: clean
rm -f $(distclean-dead)
clean-examples:
@make -k -s check-examples CHECK_CLEAN=clean
clean-gifplot-examples:
@make -k -s check-gifplot-examples CHECK_CLEAN=clean
clean-test-suite:
@echo cleaning Examples/test-suite
@make -k -s check-test-suite CHECK_CLEAN=clean
#####################################################################
# TARGETS: install & friends
#####################################################################
INSTALL = install-sh -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = $(srcdir)/${INSTALL} -m 755
MKINSTDIRS = $(srcdir)/mkinstalldirs
install: install-main install-lib install-runtime
@echo "Installation complete"
install-main:
@echo "Installing $(BIN_DIR)/swig"
@$(MKINSTDIRS) $(DESTDIR)$(BIN_DIR)
@if [ -f swig.exe ]; then \
$(INSTALL_PROGRAM) swig.exe $(DESTDIR)$(BIN_DIR)/swig.exe; \
else \
$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(BIN_DIR)/$(TARGET); \
fi
install-lib:
@echo "Installing the SWIG library"
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)
# cd $(SWIG_LIB); rm -rf *
# The following line has `*.swg' removed -- add it back if needed.
@cd $(srcdir)/Lib; for i in *.i *.swg; \
do \
echo "Installing Lib/$$i"; \
../$(INSTALL_DATA) $$i $(DESTDIR)$(SWIG_LIB)/$$i; \
done;
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)/tcl
@cd $(srcdir)/Lib/tcl; for i in *.i *.swg; \
do \
echo "Installing Lib/tcl/$$i"; \
../../$(INSTALL_DATA) $$i $(DESTDIR)$(SWIG_LIB)/tcl/$$i; \
done;
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)/perl5
@cd $(srcdir)/Lib/perl5; for i in *.i *.swg Makefile.pl; \
do \
echo "Installing Lib/perl5/$$i"; \
../../$(INSTALL_DATA) $$i $(DESTDIR)$(SWIG_LIB)/perl5/$$i; \
done;
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)/python
@cd $(srcdir)/Lib/python; for i in *.i *.swg; \
do \
echo "Installing Lib/python/$$i"; \
../../$(INSTALL_DATA) $$i $(DESTDIR)$(SWIG_LIB)/python/$$i; \
done;
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)/guile
@cd $(srcdir)/Lib/guile; for i in *.i *.swg; \
do \
echo "Installing Lib/guile/$$i"; \
../../$(INSTALL_DATA) $$i $(DESTDIR)$(SWIG_LIB)/guile/$$i; \
done;
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)/java
@cd $(srcdir)/Lib/java; for i in *.i *.swg; \
do \
echo "Installing Lib/java/$$i"; \
../../$(INSTALL_DATA) $$i $(DESTDIR)$(SWIG_LIB)/java/$$i; \
done;
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)/mzscheme
@cd $(srcdir)/Lib/mzscheme; for i in *.i *.swg; \
do \
echo "Installing Lib/mzscheme/$$i"; \
../../$(INSTALL_DATA) $$i $(DESTDIR)$(SWIG_LIB)/mzscheme/$$i; \
done;
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)/ruby
@cd $(srcdir)/Lib/ruby; for i in *.i *.swg Makefile.swig extconf.rb; \
do \
echo "Installing Lib/ruby/$$i"; \
../../$(INSTALL_DATA) $$i $(DESTDIR)$(SWIG_LIB)/ruby/$$i; \
done;
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)/php4
@cd $(srcdir)/Lib/php4; for i in *.i *.swg; \
do \
echo "Installing Lib/php4/$$i"; \
../../$(INSTALL_DATA) $$i $(DESTDIR)$(SWIG_LIB)/php4/$$i; \
done;
install-runtime:
@cd Runtime; $(MAKE) install
############################################################################
# DIST and other maintenance
############################################################################
# distribution directory
dd = swig-1.3.11u-20020329-0152
dist:
@echo 'Dave, what do you want to do w/ "make dist"?'
@echo 'See Makefile.in target "dist-suggested" for an idea.'
@echo ' --thi'
false
dist-suggested:
rm -rf $(dd) $(dd).tar.gz
cvs export -d $(dd) -r HEAD SWIG
tar cf - $(dd) | gzip --best > $(dd).tar.gz
rm -rf $(dd)
# Makefile ends here
|