Browse code

app_sqlang: detect arch for compiling squirrel lang libs

Daniel-Constantin Mierla authored on 07/06/2017 09:40:38
Showing 1 changed files
... ...
@@ -10,12 +10,19 @@ NAME=app_sqlang.so
10 10
 DEFS+=-DKAMAILIO_MOD_INTERFACE -I./squirrel/include
11 11
 LIBS += -L. -lsquirrel -lsqstdlib -lstdc++
12 12
 
13
+MKSQLANG=
14
+
15
+SQLANGARCHBSZ= $(shell echo $(ARCH) | sed -e 's/.*64.*/64b/')
16
+ifeq ($(SQLANGARCHBSZ),64b)
17
+	MKSQLANG=sq64
18
+endif
19
+
13 20
 include ../../Makefile.modules
14 21
 
15 22
 libsquirrel.a:
16
-	make -C ./squirrel/squirrel
23
+	make -C ./squirrel/squirrel $(MKSQLANG)
17 24
 
18 25
 libsqstdlib.a:
19
-	make -C ./squirrel/sqstdlib
26
+	make -C ./squirrel/sqstdlib $(MKSQLANG)
20 27
 
21 28
 app_sqlang.so: libsquirrel.a libsqstdlib.a