Linux stuff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6f4e3da2c6
commit
012ba99b0c
12 changed files with 217 additions and 39 deletions
|
|
@ -1,23 +1,24 @@
|
|||
|
||||
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 main.o
|
||||
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 =
|
||||
|
||||
PYINCLUDE = -I/usr/local/include/python2.0
|
||||
#PYINCLUDE = -I/usr/local/include/python2.0
|
||||
PYINCLUDE = -I/usr/local/include/python1.5
|
||||
TCLINCLUDE = -I/usr/local/include
|
||||
|
||||
all::
|
||||
CC -Kpic -c $(OPT) $(INCLUDE) main.cxx
|
||||
cc -c $(OPT) $(INCLUDE) $(SRCS)
|
||||
CC -G $(OBJS) -o libwad.so $(LIBS)
|
||||
CC -G $(OBJS) main.o -o libwad.so $(LIBS)
|
||||
cp libwad.so ..
|
||||
|
||||
python::
|
||||
cc -c $(OPT) $(INCLUDE) $(SRCS)
|
||||
CC -Kpic -c $(INCLUDE) $(PYINCLUDE) wadpy.cxx
|
||||
CC -G $(OBJS) wadpy.o -o libwadpy.so $(LIBS)
|
||||
CC -G $(OBJS) main.o wadpy.o -o libwadpy.so $(LIBS)
|
||||
cp libwadpy.so ..
|
||||
|
||||
tcl::
|
||||
|
|
@ -28,7 +29,19 @@ tcl::
|
|||
cp libwadtcl.so ..
|
||||
|
||||
linux::
|
||||
cc -DWAD_LINUX $(INCLUDE) segment.c init.c debug.c
|
||||
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
|
||||
|
||||
debug::
|
||||
cc -g debug.c $(INCLUDE) -L. -R. -lwad
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue