CFLAGS=-I$(LibsPath)/sqplus/Include \ -I$(LibsPath)/sqplus/sqplus/sqplus \ -I$(LibsPath)/sqplus/squirrel \ -I$(LibsPath)/sqplus/sqstdlib \ -c $(PLATFORM_SPECIAL_FLAGS) SOURCES=$(LibsPath)/sqplus/squirrel/sqapi.cpp \ $(LibsPath)/sqplus/squirrel/sqbaselib.cpp \ $(LibsPath)/sqplus/squirrel/sqclass.cpp \ $(LibsPath)/sqplus/squirrel/sqcompiler.cpp \ $(LibsPath)/sqplus/squirrel/sqdebug.cpp \ $(LibsPath)/sqplus/squirrel/sqfuncstate.cpp \ $(LibsPath)/sqplus/squirrel/sqlexer.cpp \ $(LibsPath)/sqplus/squirrel/sqmem.cpp \ $(LibsPath)/sqplus/squirrel/sqobject.cpp \ $(LibsPath)/sqplus/squirrel/sqstate.cpp \ $(LibsPath)/sqplus/squirrel/sqtable.cpp \ $(LibsPath)/sqplus/squirrel/sqvm.cpp \ $(LibsPath)/sqplus/sqplus/SqPlus.cpp \ $(LibsPath)/sqplus/sqplus/SqPlusOCharBuf.cpp \ $(LibsPath)/sqplus/sqplus/SqPlusUtf8.cpp \ $(LibsPath)/sqplus/sqplus/SquirrelBindingsUtils.cpp \ $(LibsPath)/sqplus/sqplus/SquirrelObject.cpp \ $(LibsPath)/sqplus/sqplus/SquirrelVM.cpp \ $(LibsPath)/sqplus/sqstdlib/sqstdblob.cpp \ $(LibsPath)/sqplus/sqstdlib/sqstdio.cpp \ $(LibsPath)/sqplus/sqstdlib/sqstdmath.cpp \ $(LibsPath)/sqplus/sqstdlib/sqstdrex.cpp \ $(LibsPath)/sqplus/sqstdlib/sqstdstream.cpp \ $(LibsPath)/sqplus/sqstdlib/sqstdstring.cpp \ $(LibsPath)/sqplus/sqstdlib/sqstdsystem.cpp \ $(LibsPath)/sqplus/sqstdlib/sqstdaux.cpp #not path - just name for directory OBJSDIR=objs OBJS = $(OBJSDIR)/sqapi.o \ $(OBJSDIR)/sqbaselib.o \ $(OBJSDIR)/sqclass.o \ $(OBJSDIR)/sqcompiler.o \ $(OBJSDIR)/sqdebug.o \ $(OBJSDIR)/sqfuncstate.o \ $(OBJSDIR)/sqlexer.o \ $(OBJSDIR)/sqmem.o \ $(OBJSDIR)/sqobject.o \ $(OBJSDIR)/SqPlus.o \ $(OBJSDIR)/SqPlusOCharBuf.o \ $(OBJSDIR)/SqPlusUtf8.o \ $(OBJSDIR)/sqstate.o \ $(OBJSDIR)/sqstdaux.o \ $(OBJSDIR)/sqstdblob.o \ $(OBJSDIR)/sqstdio.o \ $(OBJSDIR)/sqstdmath.o \ $(OBJSDIR)/sqstdrex.o \ $(OBJSDIR)/sqstdstream.o \ $(OBJSDIR)/sqstdstring.o \ $(OBJSDIR)/sqstdsystem.o \ $(OBJSDIR)/sqtable.o \ $(OBJSDIR)/SquirrelBindingsUtils.o \ $(OBJSDIR)/SquirrelObject.o \ $(OBJSDIR)/SquirrelVM.o \ $(OBJSDIR)/sqvm.o all: -@if [ ! -d $(OBJSDIR) ]; then mkdir $(OBJSDIR); fi cd $(OBJSDIR); \ $(CC) $(CFLAGS) $(SOURCES); \ cd .. ar rcs libsquirrel.a $(OBJS)