1 # Modified from automatic creation by Kevin Butler (butler@byu.edu)
2 # for Microsoft Visual C++ (11/22/96)
4 #######################################################################
6 # Simplified Wrapper and Interface Generator (SWIG)
8 # Makefile for version 1.1
12 # This makefile is now mostly constructed by ./configure.
15 # Revision 1.1 2002/04/29 19:56:48 RD
16 # Since I have made several changes to SWIG over the years to accomodate
17 # special cases and other things in wxPython, and since I plan on making
18 # several more, I've decided to put the SWIG sources in wxPython's CVS
19 # instead of relying on maintaining patches. This effectivly becomes a
20 # fork of an obsolete version of SWIG, :-( but since SWIG 1.3 still
21 # doesn't have some things I rely on in 1.1, not to mention that my
22 # custom patches would all have to be redone, I felt that this is the
23 # easier road to take.
25 # Revision 1.1.1.1 1999/02/28 02:00:52 beazley
28 # Revision 1.1 1996/08/12 01:55:02 dmb
31 #######################################################################
36 !include <..\make_win.in>
39 ########################################################################
40 # Normally, you shouldn't have to change anything below this point #
41 ########################################################################
43 LIBOBJS = main.obj scanner.obj symbol.obj include.obj types.obj parms.obj emit.obj newdoc.obj ascii.obj \
44 html.obj latex.obj cplus.obj lang.obj hash.obj sstring.obj wrapfunc.obj getopt.obj comment.obj typemap.obj naming.obj
46 LIBSRCS = main.cxx scanner.cxx symbol.cxx include.cxx types.cxx parms.cxx emit.cxx \
47 newdoc.cxx ascii.cxx html.cxx latex.cxx cplus.cxx lang.cxx hash.cxx \
48 sstring.cxx wrapfunc.cxx getopt.cxx comment.cxx typemap.cxx naming.cxx
50 LIBHEADERS = internal.h $(rootdir)/Include/swig.h latex.h ascii.h html.h nodoc.h
51 LIBNAME = $(rootdir)\libswig.lib
55 # Rules for creation of a .obj file from .cxx
58 $(CC) $(INCFLAGS) $(CFLAGS) -c -o $*.obj $<
62 $(LIBNAME): parser.obj $(LIBOBJS)
63 @echo "Building library"
64 @$(LD) $(LD_FLAGS) -out:$(LIBNAME) $(LIBOBJS) parser.obj
66 parser.obj: parser.cxx $(LIBHEADERS)
67 $(CC) $(INCFLAGS) $(CFLAGS) parser.cxx -c -o parser.obj
70 @echo "Must rebuild the parser with yacc"
73 @cp y.tab.c.bison parser.cxx
74 @cp y.tab.h.bison parser.h
75 @cp y.tab.h.bison y.tab.h
76 $(CC) $(CFLAGS) parser.cxx -c -o parser.obj
79 scanner.obj: scanner.cxx
80 wrapper.obj: wrapper.cxx
81 include.obj: include.cxx
87 sstring.obj: sstring.cxx
88 getopt.obj: getopt.cxx
89 wrapfunc.obj: wrapfunc.cxx
90 swigmain.obj: swigmain.cxx
91 symbol.obj: symbol.cxx
93 newdoc.obj: newdoc.cxx
95 comment.obj: comment.cxx
99 typemap.obj: typemap.cxx
100 naming.obj: naming.cxx