浏览代码

Started Nspire support.

Eiyeron Fulmincendii 9 年之前
父节点
当前提交
e743b126f9
共有 4 个文件被更改,包括 24 次插入0 次删除
  1. 5 0
      Makefile
  2. 7 0
      sq/Makefile
  3. 6 0
      sqstdlib/Makefile
  4. 6 0
      squirrel/Makefile

+ 5 - 0
Makefile

@@ -17,6 +17,11 @@ sq64: folders
 	cd sqstdlib; $(MAKE) sq64
 	cd sq; $(MAKE) sq64
 
+sqnspire: folders
+	cd squirrel; $(MAKE) sqnspire
+	cd sqstdlib; $(MAKE) sqnspire
+	cd sq; $(MAKE) sqnspire
+
 folders:
 	mkdir -p lib
 	mkdir -p bin

+ 7 - 0
sq/Makefile

@@ -19,3 +19,10 @@ sqprof:
 
 sq64:
 	g++ -O2 -m64 -fno-exceptions -fno-rtti -D_SQ64 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+
+sqnspire:
+	nspire-g++ -O2 -fno-exceptions -fno-rtti -o $(OUT).elf $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+	# Nspire executable file generation
+	genzehn --input $(OUT).elf --output $(OUT).zehn $(ZEHNFLAGS)
+	make-prg $(OUT).zehn $(OUT).tns
+	rm $(OUT).zehn

+ 6 - 0
sqstdlib/Makefile

@@ -39,3 +39,9 @@ sq64:
 	gcc -O2 -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
 	ar rc $(OUT) *.o
 	rm *.o
+
+sqnspire:
+	nspire-gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
+	# Ndless doesn't provide a ndless-ar wrapper
+	ar rc $(OUT) *.o
+	rm *.o

+ 6 - 0
squirrel/Makefile

@@ -50,3 +50,9 @@ sq64:
 	gcc -O2 -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
 	ar rc $(OUT) *.o
 	rm *.o
+
+sqnspire:
+	nspire-gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
+	# Ndless doesn't provide a ndless-ar wrapper
+	arm-none-eabi-ar rc $(OUT) *.o
+	rm *.o