1 # Generated automatically from Makefile.in by configure.
2 # Makefile for producing SWIG runtime libraries.
4 # The SWIG runtime library consists of the pointer-type checker
5 # and other support functions. Multi-file SWIG modules
6 # generally link with these libraries.
8 # By default, the installation processs will attempt to
9 # build shared libraries. If that doesn't work, a static
10 # library is built instead.
13 exec_prefix = ${prefix}
20 DYN_LIBS = libswigtcl8$(SO) libswigtcl$(SO) libswigpl$(SO) libswigpy$(SO)
21 STATIC_LIBS = libswigtcl8.a libswigtcl.a libswigpl.a libswigpy.a
22 LIBS = $(STATIC_LIBS) $(DYN_LIBS)
23 LIB_DIR = $(exec_prefix)/lib
25 INSTALL_DATA = ../install-sh -c -m 644
26 INSTALL_SHLB = ../install-sh -c -m 555
33 @echo "Installing runtime libraries"
34 @for i in $(STATIC_LIBS); \
37 echo "Installing $$i in $(LIB_DIR)/$$i"; \
38 $(INSTALL_DATA) $$i $(LIB_DIR)/$$i; \
41 @for i in $(DYN_LIBS); \
44 echo "Installing $$i in $(LIB_DIR)/$$i"; \
45 $(INSTALL_SHLB) $$i $(LIB_DIR)/$$i; \
51 rm -rf *.o *.a *$(SO) *.c *.swg *~ core
53 # ----------------------------------------------------------------------
55 # ----------------------------------------------------------------------
57 TCL_INCLUDE = -I/usr/local/include
58 TCL_LIB = -L/usr/local/lib
63 ../swig -tcl -co -o libtcl.c -I../swig_lib swigtcl.swg
64 $(CC) $(CCSHARED) -c -DSWIG_GLOBAL libtcl.c
65 $(LDSHARED) libtcl.o -o libswigtcl$(SO)
70 ../swig -tcl -co -o libtcl.c -I../swig_lib swigtcl.swg
71 $(CC) -c -DSWIG_GLOBAL libtcl.c
72 $(AR) cr libswigtcl.a libtcl.o
77 ../swig -tcl -co -o libtcl8.c -I../swig_lib swigtcl8.swg
78 $(CC) $(CCSHARED) -c -DSWIG_GLOBAL $(TCL_INCLUDE) libtcl8.c
79 $(LDSHARED) libtcl8.o -o libswigtcl8$(SO)
82 ../swig -tcl -co -o libtcl8.c -I../swig_lib swigtcl8.swg
83 $(CC) -c -DSWIG_GLOBAL $(TCL_INCLUDE) libtcl8.c
84 $(AR) cr libswigtcl8.a libtcl8.o
86 # ----------------------------------------------------------------------
87 # Python run-time library
88 # ----------------------------------------------------------------------
90 PYTHON_INCLUDE= -DHAVE_CONFIG_H -I/usr/local/include/python1.5 -I/usr/local/lib/python1.5/config
91 PYTHON_LIB = /usr/local/lib/python1.5/config
96 ../swig -python -co -o libpy.c -I../swig_lib python.swg
97 $(CC) $(CCSHARED) -c -DSWIG_RUNTIME -DSWIG_GLOBAL $(PYTHON_INCLUDE) libpy.c
98 $(LDSHARED) libpy.o -o libswigpy$(SO)
103 ../swig -python -co -o libpy.c -I../swig_lib python.swg
104 $(CC) -c -DSWIG_RUNTIME -DSWIG_GLOBAL $(PYTHON_INCLUDE) libpy.c
105 $(AR) cr libswigpy.a libpy.o
107 # ----------------------------------------------------------------------
108 # Perl run-time library
109 # ----------------------------------------------------------------------
111 PERL5_INCLUDE= -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE
116 rm -f libperl.c libperl.swg
117 ../swig -perl5 -co -o libperl.swg -I../swig_lib perl5.swg
118 cat perlrun.h >> libperl.c
119 cat libperl.swg >> libperl.c
120 $(CC) $(CCSHARED) -c -Dexplicit= -Dbool=char -DSWIG_GLOBAL $(PERL5_INCLUDE) libperl.c
121 $(LDSHARED) libperl.o -o libswigpl$(SO)
126 rm -f libperl.c libperl.swg
127 ../swig -perl5 -co -o libperl.swg -I../swig_lib perl5.swg
128 cat perlrun.h >> libperl.c
129 cat libperl.swg >> libperl.c
130 $(CC) -c -Dexplicit= -Dbool=char -DSWIG_GLOBAL $(PERL5_INCLUDE) libperl.c
131 $(AR) cr libswigpl.a libperl.o