summaryrefslogtreecommitdiff
path: root/Makefile.mingw32
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.mingw32')
-rw-r--r--Makefile.mingw3226
1 files changed, 12 insertions, 14 deletions
diff --git a/Makefile.mingw32 b/Makefile.mingw32
index b8cb4b2..f366ee7 100644
--- a/Makefile.mingw32
+++ b/Makefile.mingw32
@@ -11,26 +11,27 @@ LD = i586-mingw32msvc-g++
STRIP = i586-mingw32msvc-strip
endif
+GMPDIR=../gmp-4.3.2-mingw32
+GMPLIBDIR=$(GMPDIR)/lib
+
INCLUDES = \
--I ../Mesa-7.0.3-win32/include \
-I../Baltisot/include \
--I../Baltisot/lib/zlib/include \
--I../Baltisot/lib/lua/include -I../Baltisot/lib/lua/includes \
--I../PSX-Bundle/includes -I../PSX-Bundle/psxdev \
+-I../LuaJIT/src \
+-I../gnuwin32/include \
+-I$(GMPDIR)/include \
HAVES = -DHAVE_VSSCANF -DHAVE_FCNTL -DHAVE_UNISTD_H -DHAVE_FORK -DHAVE_PIPE -DHAVE_FSYNC -DHAVE_MALLOC_H -DHAVE_ASPRINTF -DHAVE_BYTESWAP_H
CPPFLAGS += $(INCLUDES) -g -DSTDC_HEADERS -DREADLINE_STATIC -DHOOK_STDS -DWORDS_LITTLEENDIAN -fexceptions -march=i686 $(HAVES)
-LDFLAGS += -g -fexception -shared -Wl,--export-dynamic ../lua-interface/lua-interface.a -Wl,--enable-auto-image-base --export-all-symbols -Wl,--enable-auto-import
+LDFLAGS += -g -fexception -shared ../lua-interface/lua-interface.a -Wl,--enable-auto-image-base --export-all-symbols -Wl,--enable-auto-import
-GMPLIBDIR=../gmp-4.3.2-mingw32
GMP_LIBS=-Wl,--whole-archive $(GMPLIBDIR)/libgmpxx.a $(GMPLIBDIR)/libgmp.a -Wl,--no-whole-archive
-vpath %.c ../Baltisot/lib:../Baltisot/src:../Baltisot/lib/zlib/src:../Baltisot/lib/lua/src:../Baltisot/lib/lua/src/LuaLib:src
-vpath %.cc ../Baltisot/lib:../Baltisot/src:../Baltisot/lib/zlib/src:../Baltisot/lib/lua/src:../Baltisot/lib/lua/src/LuaLib:src
-vpath %.cpp ../Baltisot/lib:../Baltisot/src:../Baltisot/lib/zlib/src:../Baltisot/lib/lua/src:../Baltisot/lib/lua/src/LuaLib:src
-vpath %.lua ../Baltisot/lib:../Baltisot/src
+vpath %.c ../Baltisot/lib:../Baltisot/src:src
+vpath %.cc ../Baltisot/lib:../Baltisot/src:src
+vpath %.cpp ../Baltisot/lib:../Baltisot/src:src
+vpath %.lua ../Baltisot/lib:../Baltisot/src:src
LUAGMP_SOURCES = \
plugin-luagmp.cc \
@@ -66,10 +67,7 @@ clean:
%.dep : %.cc
$(CXX) $(CPPFLAGS) -M -MF $@ $<
-%.c : %.clua
+%.c : %.lua
bin2c $< $@ $(basename $@)
-%.clua : %.lua
- ./luac -o $@ $<
-
-include $(ALL_DEPS)