]>
Commit | Line | Data |
---|---|---|
c90f71dd RD |
1 | ####################################################################### |
2 | # $Header$ | |
3 | # Simplified Wrapper and Interface Generator (SWIG) | |
4 | # | |
5 | # Makefile for version 1.0 Final | |
6 | # Dave Beazley | |
7 | # August 1, 1996 | |
8 | # | |
9 | # This makefile is now mostly constructed by ./configure. | |
10 | # | |
11 | # $Log$ | |
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. | |
21 | # | |
22 | # Revision 1.2 1999/08/17 03:31:30 beazley | |
23 | # Minor cleanup. Removed Perl4 | |
24 | # | |
25 | # Revision 1.1.1.1 1999/02/28 02:00:50 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 | ||
36 | srcdir = @srcdir@ | |
37 | VPATH = @srcdir@ | |
38 | ||
39 | # Set your C++ compiler here. g++ works on most machines, | |
40 | # but you might have to change it depending on your installation. | |
41 | # | |
42 | CC = @CXX@ | |
43 | ||
44 | # | |
45 | # Set the prefix below to indicate where you want SWIG to install its | |
46 | # files. Normally this is /usr/local | |
47 | # | |
48 | ||
49 | prefix = @prefix@ | |
50 | ||
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. | |
54 | ||
55 | SWIG_LIB = $(prefix)/lib/swig_lib | |
56 | ||
57 | ######################################################################## | |
58 | # Normally, you shouldn't have to change anything below this point # | |
59 | ######################################################################## | |
60 | ||
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 | |
64 | ||
65 | TARGET = ../wxswig | |
66 | ##-DSWIG_LIB='"$(SWIG_LIB)"' | |
67 | CFLAGS = @CFLAGS@ -DSWIG_CC='"$(CC)"' @DEFS@ | |
68 | INCLUDE = -I../Include -I../SWIG | |
69 | LIBS = -L.. -lswig | |
70 | SHELL = /bin/sh | |
71 | ||
72 | # | |
73 | # | |
74 | # | |
75 | # Rules for creation of a .o file from .cxx | |
76 | .SUFFIXES: .cxx | |
77 | .cxx.o: | |
78 | $(CC) $(INCLUDE) $(CFLAGS) -c -o $*.o $< | |
79 | ||
80 | all: $(TARGET) | |
81 | ||
82 | $(TARGET): $(WRAPOBJS) $(WRAPHEADERS) ../libswig.a | |
83 | $(CC) $(INCLUDE) $(WRAPOBJS) $(LIBS) -o $(TARGET) | |
84 | ||
85 | swigmain.o: swigmain.cxx | |
86 | tcl.o: tcl.cxx | |
87 | perl5.o: perl5.cxx | |
88 | python.o: python.cxx | |
89 | pycpp.o: pycpp.cxx | |
90 | guile.o: guile.cxx | |
91 | ||
92 | Makefile: $(srcdir)/Makefile.in ../config.status | |
93 | (cd ..; CONFIG_FILES=Modules/Makefile $(SHELL) config.status) | |
94 | ||
95 | .PRECIOUS: Makefile | |
96 | ||
97 | clean:: | |
98 | rm -f *.o $(TARGET) | |
99 | ||
100 | nuke:: | |
101 | rm -f Makefile *~ #* core a.out | |
102 | ||
103 | wc:: | |
104 | wc $(WRAPSRCS) *.h | |
105 |