]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wxSWIG/Runtime/makefile.vc
use SYMROOT instead of DERIVED_SOURCES_DIR
[wxWidgets.git] / wxPython / wxSWIG / Runtime / makefile.vc
1 # Modified for use with Microsoft Developer Studio V6.0
2 # Bob Techentin, February 10, 1999
3 #
4 # Makefile for producing SWIG runtime libraries.
5 #
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.
9 #
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.
13
14 !include <..\make_win.in>
15
16 SWIG_RUNTIME = $(prefix)/lib
17 dSWIG_RUNTIME = $(dprefix)\lib
18
19 AR = lib.exe
20
21
22 all: tcl_lib tcl8_lib py_lib perl_lib
23
24
25 install:
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)
32
33 install95:
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
40
41 clean::
42 del /f *.obj
43 del /f *.lib
44 del /f *.c
45 del /f *.swg
46 del /f core
47
48 # ----------------------------------------------------------------------
49 # Tcl runtime library
50 # ----------------------------------------------------------------------
51
52 TCL_INCLUDE = -Ic:\apps\TclPro1.1\include
53
54 # Tcl 7.x library
55
56 tcl_lib:
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
60
61 tcl8_lib:
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
65
66 # ----------------------------------------------------------------------
67 # Python run-time library
68 # ----------------------------------------------------------------------
69
70 PYTHON_INCLUDE = -Ic:\apps\python-1.5\Include -Ic:\apps\python-1.5 -Ic:\apps\python-1.5\PC
71
72 # Python library
73
74 py_lib:
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
78
79 # ----------------------------------------------------------------------
80 # Perl run-time library
81 # ----------------------------------------------------------------------
82
83 # These are for Perl5.004
84 PERL_INCLUDE = -Ic:\apps\perl\lib\CORE
85 PERLFLAGS = /DWIN32 /DMSWIN32 /DWIN32IO_IS_STDIO
86
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
90
91 # Perl library
92
93 perl_lib:
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
99