]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wxSWIG/SWIG/makefile.vc
Since I have made several changes to SWIG over the years to accomodate
[wxWidgets.git] / wxPython / wxSWIG / SWIG / makefile.vc
1 # Modified from automatic creation by Kevin Butler (butler@byu.edu)
2 # for Microsoft Visual C++ (11/22/96)
3 #
4 #######################################################################
5 # $Header$
6 # Simplified Wrapper and Interface Generator (SWIG)
7 #
8 # Makefile for version 1.1
9 # Dave Beazley
10 # March 12, 1997
11 #
12 # This makefile is now mostly constructed by ./configure.
13 #
14 # $Log$
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.
24 #
25 # Revision 1.1.1.1 1999/02/28 02:00:52 beazley
26 # Swig1.1
27 #
28 # Revision 1.1 1996/08/12 01:55:02 dmb
29 # Initial revision
30 #
31 #######################################################################
32
33 #.KEEP_STATE:
34
35 rootdir = ..
36 !include <..\make_win.in>
37
38
39 ########################################################################
40 # Normally, you shouldn't have to change anything below this point #
41 ########################################################################
42
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
45
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
49
50 LIBHEADERS = internal.h $(rootdir)/Include/swig.h latex.h ascii.h html.h nodoc.h
51 LIBNAME = $(rootdir)\libswig.lib
52
53
54 #
55 # Rules for creation of a .obj file from .cxx
56 .SUFFIXES: .cxx
57 .cxx.obj:
58 $(CC) $(INCFLAGS) $(CFLAGS) -c -o $*.obj $<
59
60 all: $(LIBNAME)
61
62 $(LIBNAME): parser.obj $(LIBOBJS)
63 @echo "Building library"
64 @$(LD) $(LD_FLAGS) -out:$(LIBNAME) $(LIBOBJS) parser.obj
65
66 parser.obj: parser.cxx $(LIBHEADERS)
67 $(CC) $(INCFLAGS) $(CFLAGS) parser.cxx -c -o parser.obj
68
69 parser.cxx: $(PARSER)
70 @echo "Must rebuild the parser with yacc"
71
72 parser::
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
77
78 main.obj: main.cxx
79 scanner.obj: scanner.cxx
80 wrapper.obj: wrapper.cxx
81 include.obj: include.cxx
82 types.obj: types.cxx
83 emit.obj: emit.cxx
84 cplus.obj: cplus.cxx
85 misc.obj: misc.cxx
86 hash.obj: hash.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
92 parms.obj: parms.cxx
93 newdoc.obj: newdoc.cxx
94 lang.obj: lang.cxx
95 comment.obj: comment.cxx
96 latex.obj: latex.cxx
97 ascii.obj: ascii.cxx
98 html.obj: html.cxx
99 typemap.obj: typemap.cxx
100 naming.obj: naming.cxx
101
102 clean::
103 @del *.obj
104 @del $(LIBNAME)
105
106
107