Browse Source

Fix to compile on the AIX operating system

mingodad 5 years ago
parent
commit
295bf885b9
2 changed files with 9 additions and 0 deletions
  1. 2 0
      SquiLu/mk-aix
  2. 7 0
      SquiLu/squirrel/Makefile

+ 2 - 0
SquiLu/mk-aix

@@ -0,0 +1,2 @@
+CC_EXTRA_FLAGS="-DNEED_SUBLATIN_C=1 -DSQ_ENABLE_INCLUDES=1 -DSQ_SUBLATIN=1 -DSQUSEDOUBLE=1 -maix64" \
+    CC=gcc OBJECT_MODE=64 make

+ 7 - 0
SquiLu/squirrel/Makefile

@@ -12,6 +12,7 @@ OBJS= \
 	sqfuncstate.o \
 	sqdebug.o \
 	sqlexer.o \
+	sq_lexer.o \
 	sqobject.o \
 	sqcompiler.o \
 	sqstate.o \
@@ -28,6 +29,7 @@ SRCS= \
 	sqfuncstate.cpp \
 	sqdebug.cpp \
 	sqlexer.cpp \
+	sq_lexer.cpp \
 	sqobject.cpp \
 	sqcompiler.cpp \
 	sqstate.cpp \
@@ -45,6 +47,11 @@ sq32:
 	ar rc $(OUT) *.o
 	rm *.o
 
+sq3232:
+	$(CC) -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
+	ar rc $(OUT) *.o
+	rm *.o
+
 sq32i64:
 	$(CC) -g -D_SQ64 -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
 	ar rc $(OUT) *.o