--- Makefile.orig 2013-09-05 07:34:09.489284479 +0200
+++ Makefile 2013-09-05 07:34:50.845949641 +0200
@@ -6,9 +6,9 @@
CXX = g++
CC = gcc
LD = g++
-LDFLAGS = -shared -rdynamic `python-config --ldflags`
-LIBS = -lstdc++ `python-config --libs`
-CFLAGS = -Wall -I/usr/include `python-config --includes` -I./ -I../freesteel/src -g -fPIC
+LDFLAGS = -shared -rdynamic `python2-config --ldflags`
+LIBS = -lstdc++ `python2-config --libs`
+CFLAGS = -Wall -I/usr/include `python2-config --includes` -I./ -I../freesteel/src -g -fPIC
LIBNAME = actp
LIBOBJS = Partition1.o S1.o PathX.o PathXboxed.o S1stockcircle.o S2weave.o SurfX.o SurfXboxed.o NormRay_gen.o CoreRoughGeneration.o S2weaveCell.o S2weaveCellLinearCut.o S2weaveCellLinearCutTraverse.o S2weaveCircle.o SLi_gen.o SurfXbuildcomponents.o SurfXSliceRay.o PythonStuff.o
@@ -29,11 +29,11 @@
install: $(LIBOUT)
strip $^
chmod 644 $^
- mkdir -p $(DESTDIR)$(PREFIX)/lib/python`python -c "import sys; print sys.version[:3]"`/dist-packages/
- install $^ $(DESTDIR)$(PREFIX)/lib/python`python -c "import sys; print sys.version[:3]"`/dist-packages/
+ mkdir -p $(DESTDIR)$(PREFIX)/lib/python`python2 -c "import sys; print sys.version[:3]"`/dist-packages/
+ install $^ $(DESTDIR)$(PREFIX)/lib/python`python2 -c "import sys; print sys.version[:3]"`/dist-packages/
test:
- python sample.py
+ python2 sample.py
Partition1.o: ../freesteel/src/bolts/Partition1.cpp
$(CC) -c $? ${CFLAGS} -o $@