1SQUIRREL= ..
2
3
4OUT?= $(SQUIRREL)/lib/libsqstdlib.a
5INCZ?= -I$(SQUIRREL)/include -I. -Iinclude
6DEFS= $(CC_EXTRA_FLAGS)
7LIB=
8
9OBJS= \
10	sqstdblob.o \
11	sqstdio.o \
12	sqstdstream.o \
13	sqstdmath.o \
14	sqstdsystem.o \
15	sqstdstring.o \
16	sqstdaux.o \
17	sqstdrex.o
18
19SRCS= \
20	sqstdblob.cpp \
21	sqstdio.cpp \
22	sqstdstream.cpp \
23	sqstdmath.cpp \
24	sqstdsystem.cpp \
25	sqstdstring.cpp \
26	sqstdaux.cpp \
27	sqstdrex.cpp
28
29
30sq32:
31	gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
32	ar rc $(OUT) *.o
33	rm *.o
34
35sqprof:
36	gcc -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
37	ar rc $(OUT) *.o
38	rm *.o
39
40sq64:
41	gcc -O2 -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
42	ar rc $(OUT) *.o
43	rm *.o
44