summaryrefslogtreecommitdiff
path: root/src/3rdparty/squirrel/sqstdlib/Makefile
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-25 01:21:50 +0000
committerrubidium <rubidium@openttd.org>2009-02-25 01:21:50 +0000
commit1ad50ce4e6ed74c8eeb89a1f2780e6ed58a72b2b (patch)
tree0955433146cc59335ddaac1d6e08eb177a9ead61 /src/3rdparty/squirrel/sqstdlib/Makefile
parent66a8c0a1325e1f8717150dc6bbe1bcb4fb458bef (diff)
downloadopenttd-1ad50ce4e6ed74c8eeb89a1f2780e6ed58a72b2b.tar.xz
(svn r15578) -Change: unexternalise squirrel.
Diffstat (limited to 'src/3rdparty/squirrel/sqstdlib/Makefile')
-rw-r--r--src/3rdparty/squirrel/sqstdlib/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/3rdparty/squirrel/sqstdlib/Makefile b/src/3rdparty/squirrel/sqstdlib/Makefile
new file mode 100644
index 000000000..d2c33c54a
--- /dev/null
+++ b/src/3rdparty/squirrel/sqstdlib/Makefile
@@ -0,0 +1,31 @@
+SQUIRREL= ..
+
+
+OUT= $(SQUIRREL)/lib/libsqstdlib.a
+INCZ= -I$(SQUIRREL)/include -I. -Iinclude
+
+SRCS= \
+ sqstdblob.cpp \
+ sqstdio.cpp \
+ sqstdstream.cpp \
+ sqstdmath.cpp \
+ sqstdsystem.cpp \
+ sqstdstring.cpp \
+ sqstdaux.cpp \
+ sqstdrex.cpp
+
+
+sq32:
+ gcc -O2 -fno-rtti -Wall -c $(SRCS) $(INCZ)
+ ar rc $(OUT) *.o
+
+sqprof:
+ gcc -O2 -pg -fno-rtti -pie -gstabs -g3 -Wall -c $(SRCS) $(INCZ)
+ ar rc $(OUT) *.o
+
+sq64:
+ gcc -O2 -D_SQ64 -fno-rtti -Wall -c $(SRCS) $(INCZ)
+ ar rc $(OUT) *.o
+
+clean:
+ rm -f $(OUT) $(SRCS:%.cpp=%.o)