diff options
author | pixel <pixel> | 2008-07-04 12:01:52 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-07-04 12:01:52 +0000 |
commit | cee868801b55aa4302c91a46df8daf38388163e7 (patch) | |
tree | 1bd77d5167f0a18ff7beb603b1b359c7b8c459b1 /Makefile.mingw32 |
Adding project files.
Diffstat (limited to 'Makefile.mingw32')
-rw-r--r-- | Makefile.mingw32 | 193 |
1 files changed, 193 insertions, 0 deletions
diff --git a/Makefile.mingw32 b/Makefile.mingw32 new file mode 100644 index 0000000..26d4018 --- /dev/null +++ b/Makefile.mingw32 @@ -0,0 +1,193 @@ +CC = i586-mingw32msvc-gcc +CXX = i586-mingw32msvc-g++ +LD = i586-mingw32msvc-g++ +STRIP = i586-mingw32msvc-strip + +INCLUDES = \ +-I ../Mesa-7.0.2/include \ +-I../mogltk/include \ +-I../Baltisot/include \ +-I../Baltisot/lib/zlib/include \ +-I../Baltisot/lib/lua/include -I../Baltisot/lib/lua/includes \ +-I ../tinyxml \ +-I /usr/include/mysql \ +-I /usr/include/FTGL -I /usr/include/freetype2 \ +-I /usr/include/oracle/11.1.0.1/client/ \ +-I ../Baltisot/MSVC/regex \ + +HAVES = -DHAVE_VSSCANF -DHAVE_LIBJPEG -DHAVE_MALLOC_H -DHAVE_BYTESWAP_H + +CPPFLAGS += $(INCLUDES) -g -DSTDC_HEADERS -DREADLINE_STATIC -DHOOK_STDS -DWORDS_LITTLEENDIAN -fexceptions -march=i686 $(HAVES) + +LDFLAGS += -g -fexceptions -shared -L/usr/lib/oracle/11.1.0.1/client/lib ../lua-interface/lua-interface.a -Wl,--export-dynamic -Wl,--enable-auto-image-base --export-all-symbols -Wl,--enable-auto-import + +vpath %.c ../Baltisot/lib:../Baltisot/src:../Baltisot/lib/zlib/src:../Baltisot/lib/lua/src:../Baltisot/lib/lua/src/LuaLib:src:../paperIdol/src:../mogltk/lib:../tinyxml +vpath %.cc ../Baltisot/lib:../Baltisot/src:../Baltisot/lib/zlib/src:../Baltisot/lib/lua/src:../Baltisot/lib/lua/src/LuaLib:src:../paperIdol/src:../mogltk/lib:../tinyxml +vpath %.cpp ../Baltisot/lib:../Baltisot/src:../Baltisot/lib/zlib/src:../Baltisot/lib/lua/src:../Baltisot/lib/lua/src/LuaLib:src:../paperIdol/src:../mogltk/lib:../tinyxml +vpath %.lua ../Baltisot/lib:../Baltisot/src + +CONFIGFILES_SOURCES = \ +plugin-luaconfigfiles.cc \ +LuaConfigFile.cc \ + +CONFIGFILES_LIBS = + +XML_SOURCES = \ +plugin-luaxml.cc \ +tinystr.cpp \ +tinyxml.cpp \ +tinyxmlerror.cpp \ +tinyxmlparser.cpp \ +LuaXML.cc \ + +XML_LIBS = + +OCCI_SOURCES = \ +plugin-luaocci.cc \ +LuaOCCI.cc \ + +OCCI_LIBS = -locci -lclntsh + +HANDLE_SOURCES = \ +plugin-luahandle.cc \ + +HANDLE_LIBS = + +HTTP_SOURCES = \ +plugin-luahttp.cc \ +LuaHttp.cc \ + +HTTP_LIBS = + +REGEX_SOURCES = \ +plugin-luaregex.cc \ +LuaRegex.cc \ + +REGEX_LIBS = + +TASK_SOURCES = \ +plugin-luatask.cc \ + +TASK_LIBS = + +SQL_SOURCES = \ +plugin-luasql.cc \ +SQL.cc \ +LuaSQL.cc \ + +SQL_LIBS = /usr/lib/libmysqlclient.a + +LUALIBS_SOURCES = \ +plugin-lualibs.cc \ +loadlualibs.cc \ + +LUA_LIB = \ +supportlib.lua \ +tasklib.lua \ +ajaxlib.lua \ +htmllib.lua \ +xmllib.lua \ + +GL_SOURCES = \ +plugin-luagl.cc \ +LuaGL.cc \ + +GL_LIBS = ../Mesa-7.0.2/lib/libGLU.a ../Mesa-7.0.2/lib/libOSMesa.a + +FTGL_SOURCES = \ +plugin-luaftgl.cc \ +LuaFTGL.cc \ + +FTGL_LIBS = -lfreetype -lftgl + +WHOLE_SOURCES = \ +$(CONFIGFILES_SOURCES) \ +$(LUALIBS_SOURCES) \ +$(XML_SOURCES) \ +$(TASK_SOURCES) \ +$(HANDLE_SOURCES) \ +$(HTTP_SOURCES) \ +$(REGEX_SOURCES) \ + + +#$(OCCI_SOURCES) \ +#$(SQL_SOURCES) \ +#$(GL_SOURCES) \ +#$(FTGL_SOURCES) \ + +MODULES_LIST = \ +luaconfigfiles.dll \ +lualibs.dll \ +luaxml.dll \ +luatask.dll \ +luahandle.dll \ +luahttp.dll \ +luaregex.dll \ + + +#luaocci.dll \ +#luasql.dll \ +#luagl.dll \ +#luaftgl.dll \ + +ALL_OBJECTS = $(addsuffix .o, $(notdir $(basename $(WHOLE_SOURCES) $(LUA_LIB)))) +ALL_DEPS = $(addsuffix .dep, $(notdir $(basename $(WHOLE_SOURCES)))) + +all: dep modules + +modules: $(MODULES_LIST) + +dep: $(ALL_DEPS) + +luaconfigfiles.dll: $(addsuffix .o, $(notdir $(basename $(CONFIGFILES_SOURCES)))) + $(LD) -o $@ $+ $(CONFIGFILES_LIBS) $(LDFLAGS) + +luaxml.dll: $(addsuffix .o, $(notdir $(basename $(XML_SOURCES)))) + $(LD) -o $@ $+ $(XML_LIBS) $(LDFLAGS) + +luaocci.dll: $(addsuffix .o, $(notdir $(basename $(OCCI_SOURCES)))) + $(LD) -o $@ $+ $(OCCI_LIBS) $(LDFLAGS) + +luahandle.dll: $(addsuffix .o, $(notdir $(basename $(HANDLE_SOURCES)))) + $(LD) -o $@ $+ $(HANDLE_LIBS) $(LDFLAGS) + +luahttp.dll: $(addsuffix .o, $(notdir $(basename $(HTTP_SOURCES)))) + $(LD) -o $@ $+ $(HTTP_LIBS) $(LDFLAGS) + +luaregex.dll: $(addsuffix .o, $(notdir $(basename $(REGEX_SOURCES)))) + $(LD) -o $@ $+ $(REGEX_LIBS) $(LDFLAGS) + +luatask.dll: $(addsuffix .o, $(notdir $(basename $(TASK_SOURCES)))) + $(LD) -o $@ $+ $(TASK_LIBS) $(LDFLAGS) + +luasql.dll: $(addsuffix .o, $(notdir $(basename $(SQL_SOURCES)))) + $(LD) -o $@ $+ $(SQL_LIBS) $(LDFLAGS) + +luagl.dll: $(addsuffix .o, $(notdir $(basename $(GL_SOURCES)))) + $(LD) -o $@ $+ $(GL_LIBS) $(LDFLAGS) + +luaftgl.dll: $(addsuffix .o, $(notdir $(basename $(FTGL_SOURCES)))) + $(LD) -o $@ $+ $(FTGL_LIBS) $(LDFLAGS) + +lualibs.dll: $(addsuffix .o, $(notdir $(basename $(LUALIBS_SOURCES) $(LUA_LIB)))) + $(LD) -o $@ $+ $(LUALIBS_LIBS) $(LDFLAGS) + +clean: + rm -f *.o *.dep *.dll + +%.dep : %.c + $(CC) $(CPPFLAGS) -M -MF $@ $< + +%.dep : %.cpp + $(CXX) $(CPPFLAGS) -M -MF $@ $< + +%.dep : %.cc + $(CXX) $(CPPFLAGS) -M -MF $@ $< + +%.c : %.clua + bin2c $< $@ $(basename $@) + +%.clua : %.lua + ./luac -o $@ $< + +-include $(ALL_DEPS) |