1 # Modified for use with Microsoft Developer Studio V6.0
2 # Bob Techentin, February 10, 1999
4 # Makefile for producing SWIG runtime libraries.
6 # The SWIG runtime library consists of the pointer-type checker
7 # and other support functions. Multi-file SWIG modules
8 # generally link with these libraries.
10 # The Windows version of the runtime libraries are static.
11 # Note the "-" command prefix ignores errors during compiles
12 # and links, because you might not have all languages.
14 !include <..\make_win.in>
16 SWIG_RUNTIME = $(prefix)/lib
17 dSWIG_RUNTIME = $(dprefix)\lib
22 all: tcl_lib tcl8_lib py_lib perl_lib
26 @echo "Installing runtime libraries"
27 @if not exist $(dSWIG_RUNTIME) mkdir $(dSWIG_RUNTIME)
28 if exist swigtcl.lib copy swigtcl.lib $(dSWIG_RUNTIME)
29 if exist swigtcl8.lib copy swigtcl8.lib $(dSWIG_RUNTIME)
30 if exist swigpy.lib copy swigpy.lib $(dSWIG_RUNTIME)
31 if exist swigpl.lib copy swigpl.lib $(dSWIG_RUNTIME)
34 @echo "Installing runtime libraries"
35 @if not exist $(dSWIG_RUNTIME) mkdir $(dSWIG_RUNTIME)
36 if exist swigtcl.lib copy swigtcl.lib $(dSWIG_RUNTIME) /Y
37 if exist swigtcl8.lib copy swigtcl8.lib $(dSWIG_RUNTIME) /Y
38 if exist swigpy.lib copy swigpy.lib $(dSWIG_RUNTIME) /Y
39 if exist swigpl.lib copy swigpl.lib $(dSWIG_RUNTIME) /Y
48 # ----------------------------------------------------------------------
50 # ----------------------------------------------------------------------
52 TCL_INCLUDE = -Ic:\apps\TclPro1.1\include
57 -..\swig.exe -tcl -co -o libtcl.c -I..\swig_lib swigtcl.swg
58 -$(CC) -c -DSWIG_GLOBAL libtcl.c
59 -$(AR) /out:swigtcl.lib libtcl.obj
62 -..\swig.exe -tcl -co -o libtcl8.c -I..\swig_lib swigtcl8.swg
63 -$(CC) -c -DSWIG_GLOBAL $(TCL_INCLUDE) libtcl8.c
64 -$(AR) /out:swigtcl8.lib libtcl8.obj
66 # ----------------------------------------------------------------------
67 # Python run-time library
68 # ----------------------------------------------------------------------
70 PYTHON_INCLUDE = -Ic:\apps\python-1.5\Include -Ic:\apps\python-1.5 -Ic:\apps\python-1.5\PC
75 -..\swig.exe -python -co -o libpy.c -I../swig_lib python.swg
76 -$(CC) -c -DSWIG_GLOBAL $(PYTHON_INCLUDE) libpy.c
77 -$(AR) /out:swigpy.lib libpy.obj
79 # ----------------------------------------------------------------------
80 # Perl run-time library
81 # ----------------------------------------------------------------------
83 # These are for Perl5.004
84 PERL_INCLUDE = -Ic:\apps\perl\lib\CORE
85 PERLFLAGS = /DWIN32 /DMSWIN32 /DWIN32IO_IS_STDIO
87 # Uncomment the following if you are using ActiveWare Perl for Win32
88 #PERL_INCLUDE =-Id:\perl315 -Id:\perl315\inc
89 #PERLFLAGS = /DWIN32 /DMSWIN32 /DPERL_OBJECT
94 -del /f libperl.c libperl.swg
95 -..\swig.exe -perl5 -co -o libperl.swg -I..\swig_lib perl5.swg
96 -copy perlrun.h+libperl.swg libperl.c
97 -$(CC) -c -Dexplicit= -Dbool=char -DSWIG_GLOBAL $(PERFLAGS) $(PERL_INCLUDE) libperl.c
98 -$(AR) /out:swigpl.lib libperl.obj