*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@976 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a4c8ee3710
commit
7a2f098e57
6 changed files with 571 additions and 61 deletions
|
|
@ -1,55 +1,70 @@
|
|||
# Generated automatically from Makefile.in by configure.
|
||||
#######################################################################
|
||||
# WAD Makefile
|
||||
#
|
||||
# David Beazley
|
||||
# January 1, 2001
|
||||
#######################################################################
|
||||
|
||||
SRCS = return.c default.c stack.c stab.c elf.c object.c init.c segment.c signal.c
|
||||
OBJS = return.o default.o stack.o stab.o elf.o object.o signal.o segment.o init.o
|
||||
INCLUDE = -I../Include -I.
|
||||
OPT = -DWAD_SOLARIS
|
||||
LIBS =
|
||||
# These are the files that make up the WAD core
|
||||
WADSRCS = return.c default.c stack.c stab.c elf.c object.c init.c segment.c signal.c
|
||||
WADOBJS = return.o default.o stack.o stab.o elf.o object.o signal.o segment.o init.o
|
||||
INCLUDE = -I../Include -I. $(SINCLUDE)
|
||||
WADOPT = -DWAD_LINUX
|
||||
|
||||
#PYINCLUDE = -I/usr/local/include/python2.0
|
||||
PYINCLUDE = -I/usr/local/include/python1.5
|
||||
# Location of your Python installation
|
||||
PYINCLUDE = -I/usr/local/include/python1.5 -I/usr/local/lib/python1.5/config
|
||||
PYSRCS = wadpy.cxx
|
||||
PYOBJS = wadpy.o
|
||||
|
||||
# Location of your Tcl installation
|
||||
TCLINCLUDE = -I/usr/local/include
|
||||
PERLINCLUDE = -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE
|
||||
TCLSRCS = wadtcl.cxx
|
||||
TCLOBJS = wadtcl.o
|
||||
|
||||
all::
|
||||
CC -Kpic -c $(OPT) $(INCLUDE) main.cxx
|
||||
cc -c $(OPT) $(INCLUDE) $(SRCS)
|
||||
CC -G $(OBJS) main.o -o libwad.so $(LIBS)
|
||||
# Location of your Perl installation
|
||||
PERLINCLUDE = -I/usr/lib/perl5/5.00503/i386-linux/CORE
|
||||
PERLSRCS = wadpl.cxx
|
||||
PERLOBJS = wadpl.o
|
||||
|
||||
# C Compiler
|
||||
CC = gcc
|
||||
CFLAGS = -fpic
|
||||
|
||||
# C++ Compiler
|
||||
CXX = c++
|
||||
CXXFLAGS = -fpic
|
||||
|
||||
# Linking options
|
||||
CLINK =
|
||||
CXXLINK = g++ -shared
|
||||
|
||||
# Rules for creation of a .o file from .cxx
|
||||
.SUFFIXES: .cxx
|
||||
.cxx.o:
|
||||
$(CXX) $(CXXFLAGS) $(WADOPT) $(INCLUDE) -c -o $*.o $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $(WADOPT) $(INCLUDE) -c -o $*.o $<
|
||||
|
||||
wad: $(WADOBJS) main.o
|
||||
$(CXXLINK) $(WADOBJS) main.o -o libwad.so
|
||||
cp libwad.so ..
|
||||
|
||||
python::
|
||||
cc -c $(OPT) $(INCLUDE) $(SRCS)
|
||||
CC -Kpic -c $(INCLUDE) $(PYINCLUDE) wadpy.cxx
|
||||
CC -G $(OBJS) main.o wadpy.o -o libwadpy.so $(LIBS)
|
||||
python: $(WADOBJS) $(PYOBJS)
|
||||
$(CXXLINK) $(WADOBJS) $(PYOBJS) -o libwadpy.so
|
||||
cp libwadpy.so ..
|
||||
|
||||
tcl::
|
||||
cc -c $(OPT) $(INCLUDE) $(SRCS)
|
||||
CC -Kpic -c $(INCLUDE) $(TCLINCLUDE) wadtcl.cxx
|
||||
CC -G $(OBJS) wadtcl.o -o wad.so $(LIBS)
|
||||
cp wad.so libwadtcl.so
|
||||
tcl: $(WADOBJS) $(TCLOBJS)
|
||||
$(CXXLINK) $(WADOBJS) $(TCLOBJS) -o libwadtcl.so
|
||||
cp libwadtcl.so ..
|
||||
|
||||
perl::
|
||||
makehandler.py
|
||||
cc -c $(OPT) $(INCLUDE) $(SRCS)
|
||||
CC -Kpic -c $(INCLUDE) $(PERLINCLUDE) wadpl.cxx
|
||||
CC -G $(OBJS) wadpl.o -o libwadpl.so $(LIBS)
|
||||
perl: wad_perl_handler.c $(WADOBJS) $(PERLOBJS)
|
||||
$(CXXLINK) $(WADOBJS) $(PERLOBJS) -o libwadpl.so
|
||||
cp libwadpl.so ..
|
||||
|
||||
linux::
|
||||
g++ -fpic -c -DWAD_LINUX $(INCLUDE) main.cxx
|
||||
gcc -g -c -DWAD_LINUX $(INCLUDE) $(SRCS)
|
||||
g++ -shared $(OBJS) main.o -o libwad.so $(LIBS)
|
||||
cp libwad.so ..
|
||||
|
||||
linux-python::
|
||||
gcc -c -DWAD_LINUX $(INCLUDE) $(SRCS)
|
||||
g++ -fpic -c -DWAD_LINUX $(INCLUDE) $(PYINCLUDE) wadpy.cxx
|
||||
g++ -shared $(OBJS) wadpy.o -o libwadpy.so $(LIBS)
|
||||
cp libwadpy.so ..
|
||||
|
||||
linux2::
|
||||
cc -DWAD_LINUX $(INCLUDE) signal.c stack.c default.c demangle.c return.c stab.c elf.c object.c segment.c init.c debug.c
|
||||
wad_perl_handler.c:
|
||||
python makehandler.py
|
||||
|
||||
debug::
|
||||
cc -g debug.c $(INCLUDE) -L. -R. -lwad
|
||||
|
|
@ -67,3 +82,6 @@ semi::
|
|||
clean::
|
||||
rm -f *.o *.so *~
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
86
Tools/WAD/Wad/Makefile.in
Normal file
86
Tools/WAD/Wad/Makefile.in
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
#######################################################################
|
||||
# WAD Makefile
|
||||
#
|
||||
# David Beazley
|
||||
# January 1, 2001
|
||||
#######################################################################
|
||||
|
||||
# These are the files that make up the WAD core
|
||||
WADSRCS = return.c default.c stack.c stab.c elf.c object.c init.c segment.c signal.c
|
||||
WADOBJS = return.o default.o stack.o stab.o elf.o object.o signal.o segment.o init.o
|
||||
INCLUDE = -I../Include -I. $(SINCLUDE)
|
||||
WADOPT = @WADOPT@
|
||||
|
||||
# Location of your Python installation
|
||||
PYINCLUDE = @PYINCLUDE@
|
||||
PYSRCS = wadpy.cxx
|
||||
PYOBJS = wadpy.o
|
||||
|
||||
# Location of your Tcl installation
|
||||
TCLINCLUDE = @TCLINCLUDE@
|
||||
TCLSRCS = wadtcl.cxx
|
||||
TCLOBJS = wadtcl.o
|
||||
|
||||
# Location of your Perl installation
|
||||
PERLINCLUDE = @PERL5EXT@
|
||||
PERLSRCS = wadpl.cxx
|
||||
PERLOBJS = wadpl.o
|
||||
|
||||
# C Compiler
|
||||
CC = @CC@
|
||||
CFLAGS = @CCSHARED@
|
||||
|
||||
# C++ Compiler
|
||||
CXX = @CXX@
|
||||
CXXFLAGS = @CXXSHARED@
|
||||
|
||||
# Linking options
|
||||
CLINK =
|
||||
CXXLINK = @CXXLINK@
|
||||
|
||||
# Rules for creation of a .o file from .cxx
|
||||
.SUFFIXES: .cxx
|
||||
.cxx.o:
|
||||
$(CXX) $(CXXFLAGS) $(WADOPT) $(INCLUDE) -c -o $*.o $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $(WADOPT) $(INCLUDE) -c -o $*.o $<
|
||||
|
||||
wad: $(WADOBJS) main.o
|
||||
$(CXXLINK) $(WADOBJS) main.o -o libwad.so
|
||||
cp libwad.so ..
|
||||
|
||||
python: $(WADOBJS) $(PYOBJS)
|
||||
$(CXXLINK) $(WADOBJS) $(PYOBJS) -o libwadpy.so
|
||||
cp libwadpy.so ..
|
||||
|
||||
tcl: $(WADOBJS) $(TCLOBJS)
|
||||
$(CXXLINK) $(WADOBJS) $(TCLOBJS) -o libwadtcl.so
|
||||
cp libwadtcl.so ..
|
||||
|
||||
perl: wad_perl_handler.c $(WADOBJS) $(PERLOBJS)
|
||||
$(CXXLINK) $(WADOBJS) $(PERLOBJS) -o libwadpl.so
|
||||
cp libwadpl.so ..
|
||||
|
||||
wad_perl_handler.c:
|
||||
python makehandler.py
|
||||
|
||||
debug::
|
||||
cc -g debug.c $(INCLUDE) -L. -R. -lwad
|
||||
|
||||
plus::
|
||||
CC -g debug.cxx $(INCLUDE) -L. -R. -lwad
|
||||
|
||||
wc::
|
||||
wc $(SRCS)
|
||||
|
||||
semi::
|
||||
egrep ";" $(SRCS) wadpy.cxx | wc
|
||||
|
||||
|
||||
clean::
|
||||
rm -f *.o *.so *~
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue