1 | #/* |
---|
2 | # * This was automatically generated by modgen |
---|
3 | # * version 0.2 |
---|
4 | # * module python |
---|
5 | # * Don't edit this file |
---|
6 | # */ |
---|
7 | # |
---|
8 | # |
---|
9 | CC = gcc |
---|
10 | CXX = g++ |
---|
11 | PYTHON_VERSION=2.3 |
---|
12 | SINGULAR_BASE=../.. |
---|
13 | SING_ARCH=ix86 |
---|
14 | CFLAGS = -DNDEBUG -DBUILD_MODULE -I. -I${SINGULAR_BASE}/kernel -I${SINGULAR_BASE}/Singular -I/home/michael/sing/${SING_ARCH}-Linux/include -I/usr/include/python${PYTHON_VERSION} |
---|
15 | DCFLAGS = -DBUILD_MODULE -I. -I/home/michael/sing/kernel -I${SINGULAR_BASE}/Singular -I/home/michael/sing/${SING_ARCH}-Linux/include -I/usr/include/python${PYTHON_VERSION} |
---|
16 | LDFLAGS= -lboost_python -lpython${PYTHON_VERSION} |
---|
17 | #LD = |
---|
18 | MKINSTALLDIRS=mkdir -p |
---|
19 | instdir = /home/michael/sing/ix86-Linux |
---|
20 | INSTALL = /home/michael/sing/Singular/install-sh -c |
---|
21 | INSTALL_PROGRAM = ${INSTALL} |
---|
22 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
23 | SRCS = python.cc poly_wrap.cc vector_wrap.cc CF_wrap.cc\ |
---|
24 | Åumber_wrap.cc playground.cc |
---|
25 | OBJS = python.o poly_wrap.o vector_wrap.o CF_wrap.o\ |
---|
26 | number_wrap.o playground.o |
---|
27 | DOBJS = python.og poly_wrap.og vector_wrap.og CF_wrap.og\ |
---|
28 | number_wrap.og playground.og |
---|
29 | default: |
---|
30 | echo "use scons for building this project" |
---|
31 | |
---|
32 | all: python_module.so python_module_g.so |
---|
33 | |
---|
34 | %.o: %.cc Makefile |
---|
35 | ${CXX} ${CFLAGS} -c -fPIC -DPIC $< -o $*.o |
---|
36 | |
---|
37 | %.og: %.cc Makefile |
---|
38 | ${CXX} ${DCFLAGS} -c -fPIC -DPIC $< -o $*.og |
---|
39 | |
---|
40 | python_module.so: ${OBJS} |
---|
41 | ${CXX} ${CFLAGS} ${LDFLAGS} -shared -Wl,-soname -Wl,python_module.so.1 \ |
---|
42 | -o python_module.so.1.2.0 ${OBJS} |
---|
43 | rm -f python_module.so |
---|
44 | ln -s python_module.so.1.2.0 python_module.so |
---|
45 | |
---|
46 | python_module_g.so: ${DOBJS} |
---|
47 | ${CXX} ${DCFLAGS} ${LDFLAGS} -shared -Wl,-soname -Wl,python_module_g.so.1 \ |
---|
48 | -o python_module_g.so.1.2.0 ${DOBJS} |
---|
49 | rm -f python_module_g.so |
---|
50 | ln -s python_module_g.so.1.2.0 python_module_g.so |
---|
51 | |
---|
52 | clean: |
---|
53 | rm -f *.o *.og *.lo *.so* *.sl *.la *~ core |
---|
54 | |
---|
55 | distclean: clean |
---|
56 | rm -f python.cc python.h Makefile *.bin *.pl |
---|
57 | |
---|
58 | install: |
---|
59 | ${MKINSTALLDIRS} ${instdir} |
---|
60 | ${MKINSTALLDIRS} ${instdir}/MOD |
---|
61 | ${INSTALL_PROGRAM} python_module.so ${instdir}/MOD/python_module.so |
---|
62 | ${INSTALL_PROGRAM} python_module.bin ${instdir}/MOD/python_module.bin |
---|
63 | |
---|
64 | |
---|