Skip to content

Commit ccb5cf0

Browse files
committed
Fix make files to get automatic extension suffix
1 parent ec4f4ed commit ccb5cf0

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

source-code/cython/Classes/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
VERSION = cpython-311-x86_64-linux-gnu
2-
POINTS_LIB = points.$(VERSION).so
3-
POINTS_PURE_LIB = points_pure.$(VERSION).so
1+
VERSION = $(shell python3-config --extension-suffix)
2+
POINTS_LIB = points$(VERSION)
3+
POINTS_PURE_LIB = points_pure$(VERSION)
44

55
all: $(POINTS_LIB)
66

source-code/cython/Exceptions/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
VERSION = cpython-311-x86_64-linux-gnu
2-
AVERAGE_LIB = average.$(VERSION).so
3-
AVERAGE_PURE_LIB = average_pure.$(VERSION).so
1+
VERSION = $(shell python3-config --extension-suffix)
2+
AVERAGE_LIB = average$(VERSION)
3+
AVERAGE_PURE_LIB = average_pure$(VERSION)
44

55
all: $(AVERAGE_LIB) $(AVERAGE_PURE_LIB)
66

source-code/cython/HelloWorld/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = cpython-311-x86_64-linux-gnu
1+
VERSION = $(sheel python3-config --extension-suffix)
22
HELLO_WORLD_LIB = hello_world.$(VERSION).so
33

44
all: $(HELLO_WORLD_LIB)

source-code/cython/Numpy/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = cpython-311-x86_64-linux-gnu
1+
VERSION = $(shell python3-config --extension-suffix)
22
ARRAY_SUM_LIB = array_sum.$(VERSION).so
33
ARRAY_INIT_LIB = array_init.$(VERSION).so
44
ARRAY_SUM_PURE_LIB = array_sum_pure.$(VERSION).so

source-code/cython/Pi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ $(LIB_FILES): $(PYX_FILES)
99

1010
clean:
1111
python setup.py clean
12-
rm -f $(C_FILES) $(LIB_FILES)
12+
$(RM) $(C_FILES) $(LIB_FILES)

source-code/cython/Pointers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = cpython-311-x86_64-linux-gnu
1+
VERSION = $(shell python3-config --extension-suffix)
22
CYTHON_LIB = pointers_cython.$(VERSION).so
33
PURE_LIB = pointers_pure.$(VERSION).so
44

source-code/cython/Primes/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = cpython-311-x86_64-linux-gnu
1+
VERSION = $(shell python3-config --extension-suffix)
22
PRIMES_LIBS = primes_cython.$(VERSION).so primes_cython3.$(VERSION).so \
33
primes_pure_python.$(VERSION).so primes_pure_malloc.$(VERSION).so \
44
primes_malloc.$(VERSION).so

source-code/cython/Profiling/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = cpython-35m-x86_64-linux-gnu
1+
VERSION = $(shell python3-config --extension-suffix)
22

33
QUAD_LIBS = quad.$(VERSION).so quad_prof.$(VERSION).so \
44
quad_prof_indiv.$(VERSION).so
@@ -10,4 +10,4 @@ all: $(QUAD_LIBS)
1010

1111
clean:
1212
python setup.py clean
13-
rm -f *.c $(QUAD_LIBS)
13+
$(RM) *.c $(QUAD_LIBS)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = cpython-34m
1+
VERSION = $(shell python3-config --extension-suffix)
22
COMPOUNDS_LIB = compounds.$(VERSION).so
33

44
all: $(COMPOUNDS_LIB)
@@ -8,4 +8,4 @@ $(COMPOUNDS_LIB): compounds.pyx
88

99
clean:
1010
python setup.py clean
11-
rm -f compounds.c $(COMPOUNDS_LIB)
11+
$(RM) compounds.c $(COMPOUNDS_LIB)

source-code/cython/Structures/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = cpython-311-x86_64-linux-gnu
1+
VERSION = $(shell python3-config --extension-suffix)
22
CYTHON_LIB = point_cython.$(VERSION).so
33
PURE_LIB = point_pure.$(VERSION).so
44

0 commit comments

Comments
 (0)