source: git/dyn_modules/python/Makefile @ d77a70

fieker-DuValspielwiese
Last change on this file since d77a70 was 3c473c, checked in by Kai Krüger <krueger@…>, 14 years ago
rename directory modules to dyn_modules anticipating "modules" directory for cmake. git-svn-id: file:///usr/local/Singular/svn/trunk@13033 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.0 KB
Line 
1#/*
2# * This was automatically generated by modgen
3# * version 0.2
4# * module python
5# * Don't edit this file
6# */
7#
8#
9CC      = gcc
10CXX     = g++
11PYTHON_VERSION=2.3
12SINGULAR_BASE=../..
13SING_ARCH=ix86
14CFLAGS  = -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}
15DCFLAGS = -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}
16LDFLAGS= -lboost_python -lpython${PYTHON_VERSION}
17#LD     =
18MKINSTALLDIRS=mkdir -p
19instdir          = /home/michael/sing/ix86-Linux
20INSTALL         = /home/michael/sing/Singular/install-sh -c
21INSTALL_PROGRAM = ${INSTALL}
22INSTALL_DATA    = ${INSTALL} -m 644
23SRCS    = python.cc poly_wrap.cc vector_wrap.cc CF_wrap.cc\
24             Å†umber_wrap.cc playground.cc
25OBJS    = python.o poly_wrap.o vector_wrap.o CF_wrap.o\
26             number_wrap.o playground.o
27DOBJS   = python.og poly_wrap.og vector_wrap.og CF_wrap.og\
28             number_wrap.og playground.og
29default:
30        echo "use scons for building this project"
31
32all:    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
40python_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
46python_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
52clean:
53        rm -f *.o *.og *.lo *.so* *.sl *.la *~ core
54
55distclean: clean
56        rm -f python.cc python.h Makefile *.bin *.pl
57
58install:
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
Note: See TracBrowser for help on using the repository browser.