--- sq/Makefile.orig	2006-03-06 11:01:40.000000000 -0600
+++ sq/Makefile	2009-11-15 00:49:01.000000000 -0600
@@ -12,10 +12,10 @@
 	
 	
 sq32:
-	g++ -O2 -fno-rtti -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+	$(CXX) -O2 -fno-rtti -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
 
 sqprof:
-	g++ -O2 -pg -fno-rtti -pie -gstabs -g3 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+	$(CXX) -O2 -pg -fno-rtti -pie -gstabs -g3 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
 	
 sq64:
-	g++ -O2 -fno-rtti -D_SQ64 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+	$(CXX) -O2 -fno-rtti -D_SQ64 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
--- squirrel/Makefile.orig	2006-03-07 04:01:31.000000000 +1100
+++ squirrel/Makefile	2008-05-10 17:04:29.000000000 +1000
@@ -37,16 +37,16 @@
 	
 	
 sq32:
-	gcc -O2  -fno-rtti -Wall -c $(SRCS) $(INCZ) $(DEFS)
+	$(CC) -O2  -fno-rtti -Wall -c $(SRCS) $(INCZ) $(DEFS)
 	ar rc $(OUT) *.o
 	rm *.o
 
 sqprof:
-	gcc -O2 -pg -fno-rtti -pie -gstabs -g3 -Wall -c $(SRCS) $(INCZ) $(DEFS)
+	$(CC) -O2 -pg -fno-rtti -pie -gstabs -g3 -Wall -c $(SRCS) $(INCZ) $(DEFS)
 	ar rc $(OUT) *.o
 	rm *.o
 
 sq64:
-	gcc -O2  -D_SQ64 -fno-rtti -Wall -c $(SRCS) $(INCZ) $(DEFS)
+	$(CC) -O2  -D_SQ64 -fno-rtti -Wall -c $(SRCS) $(INCZ) $(DEFS)
 	ar rc $(OUT) *.o
 	rm *.o
--- sqstdlib/Makefile.orig	2006-03-06 11:01:50.000000000 -0600
+++ sqstdlib/Makefile	2009-11-15 00:33:22.000000000 -0600
@@ -16,15 +16,15 @@
 	
 	
 sq32:
-	gcc -O2  -fno-rtti -Wall -c $(SRCS) $(INCZ)
+	$(CC) -O2  -fno-rtti -Wall -c $(SRCS) $(INCZ)
 	ar rc $(OUT) *.o
 	rm *.o
 
 sqprof:
-	gcc -O2 -pg -fno-rtti -pie -gstabs -g3 -Wall -c $(SRCS) $(INCZ)
+	$(CC) -O2 -pg -fno-rtti -pie -gstabs -g3 -Wall -c $(SRCS) $(INCZ)
 	ar rc $(OUT) *.o
 	rm *.o
 sq64:
-	gcc -O2 -D_SQ64 -fno-rtti -Wall -c $(SRCS) $(INCZ)
+	$(CC) -O2 -D_SQ64 -fno-rtti -Wall -c $(SRCS) $(INCZ)
 	ar rc $(OUT) *.o
 	rm *.o
