2016-02-15 20:51:20 +01:00
|
|
|
SQUIRREL= ..
|
|
|
|
|
|
|
|
|
2017-06-26 22:45:09 +02:00
|
|
|
OUT?= $(SQUIRREL)/lib/libsqstdlib.a
|
|
|
|
INCZ?= -I$(SQUIRREL)/include -I. -Iinclude
|
|
|
|
DEFS= $(CC_EXTRA_FLAGS)
|
|
|
|
LIB=
|
2016-02-15 20:51:20 +01:00
|
|
|
|
|
|
|
OBJS= \
|
|
|
|
sqstdblob.o \
|
|
|
|
sqstdio.o \
|
|
|
|
sqstdstream.o \
|
|
|
|
sqstdmath.o \
|
|
|
|
sqstdsystem.o \
|
|
|
|
sqstdstring.o \
|
|
|
|
sqstdaux.o \
|
|
|
|
sqstdrex.o
|
|
|
|
|
|
|
|
SRCS= \
|
|
|
|
sqstdblob.cpp \
|
|
|
|
sqstdio.cpp \
|
|
|
|
sqstdstream.cpp \
|
|
|
|
sqstdmath.cpp \
|
|
|
|
sqstdsystem.cpp \
|
|
|
|
sqstdstring.cpp \
|
|
|
|
sqstdaux.cpp \
|
|
|
|
sqstdrex.cpp
|
|
|
|
|
|
|
|
|
|
|
|
sq32:
|
2017-06-26 22:45:09 +02:00
|
|
|
gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
|
2016-02-15 20:51:20 +01:00
|
|
|
ar rc $(OUT) *.o
|
|
|
|
rm *.o
|
|
|
|
|
|
|
|
sqprof:
|
2017-06-26 22:45:09 +02:00
|
|
|
gcc -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
|
2016-02-15 20:51:20 +01:00
|
|
|
ar rc $(OUT) *.o
|
|
|
|
rm *.o
|
|
|
|
|
|
|
|
sq64:
|
2017-06-26 22:45:09 +02:00
|
|
|
gcc -O2 -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
|
2016-02-15 20:51:20 +01:00
|
|
|
ar rc $(OUT) *.o
|
|
|
|
rm *.o
|