1 #######################################################################
3 # Simplified Wrapper and Interface Generator (SWIG)
5 # Makefile for version 1.0 Final
9 # This makefile is now mostly constructed by ./configure.
12 # Revision 1.1 2002/04/29 19:56:47 RD
13 # Since I have made several changes to SWIG over the years to accomodate
14 # special cases and other things in wxPython, and since I plan on making
15 # several more, I've decided to put the SWIG sources in wxPython's CVS
16 # instead of relying on maintaining patches. This effectivly becomes a
17 # fork of an obsolete version of SWIG, :-( but since SWIG 1.3 still
18 # doesn't have some things I rely on in 1.1, not to mention that my
19 # custom patches would all have to be redone, I felt that this is the
20 # easier road to take.
22 # Revision 1.2 1999/08/17 03:31:30 beazley
23 # Minor cleanup. Removed Perl4
25 # Revision 1.1.1.1 1999/02/28 02:00:50 beazley
28 # Revision 1.1 1996/08/12 01:55:02 dmb
31 #######################################################################
39 # Set your C++ compiler here. g++ works on most machines,
40 # but you might have to change it depending on your installation.
45 # Set the prefix below to indicate where you want SWIG to install its
46 # files. Normally this is /usr/local
51 # Location of the SWIG library. Is normally put in /usr/local/lib/swig_lib
52 # The SWIG library contains configuration files and library modules
53 # so you should install it someplace where it can be easily accessed.
55 SWIG_LIB = $(prefix)/lib/swig_lib
57 ########################################################################
58 # Normally, you shouldn't have to change anything below this point #
59 ########################################################################
61 WRAPOBJS = swigmain.o tcl.o tcl8.o perl5.o python.o pycpp.o guile.o debug.o
62 WRAPSRCS = swigmain.cxx tcl.cxx tcl8.cxx perl5.cxx python.cxx pycpp.cxx guile.cxx debug.cxx
63 WRAPHEADERS = ../Include/swig.h swigtcl.h perl5.h python.h guile.h debug.h wrap.h
66 ##-DSWIG_LIB='"$(SWIG_LIB)"'
67 CFLAGS = @CFLAGS@ -DSWIG_CC='"$(CC)"' @DEFS@
68 INCLUDE = -I../Include -I../SWIG
75 # Rules for creation of a .o file from .cxx
78 $(CC) $(INCLUDE) $(CFLAGS) -c -o $*.o $<
82 $(TARGET): $(WRAPOBJS) $(WRAPHEADERS) ../libswig.a
83 $(CC) $(INCLUDE) $(WRAPOBJS) $(LIBS) -o $(TARGET)
85 swigmain.o: swigmain.cxx
92 Makefile: $(srcdir)/Makefile.in ../config.status
93 (cd ..; CONFIG_FILES=Modules/Makefile $(SHELL) config.status)
101 rm -f Makefile *~ #* core a.out