diff options
author | Pixel <pixel@nobis-crew.org> | 2009-11-06 05:28:01 +0100 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-11-06 05:28:01 +0100 |
commit | df7b78c867d710d363efc6c0076c5e317b615ddd (patch) | |
tree | 3d88f19c5f1bfcec73cfa9f8e27fa043f37fe8a6 /Makefile.mingw32 | |
parent | 8e9d933e47250613ac721ea72de8ab23dc44f2e9 (diff) | |
parent | 501204b88927f4bcc0a7d6065a4a220af6fb0eed (diff) |
Merge branch 'master' of ssh+git://pixel@git.grumpycoder.net/pub/repo.git/lua-interface
Diffstat (limited to 'Makefile.mingw32')
-rw-r--r-- | Makefile.mingw32 | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Makefile.mingw32 b/Makefile.mingw32 index 6b54ef3..9ef4853 100644 --- a/Makefile.mingw32 +++ b/Makefile.mingw32 @@ -3,7 +3,7 @@ ifeq ($(SYSTEM),Darwin) CC = i386-mingw32-gcc CXX = i386-mingw32-g++ LD = i386-mingw32-g++ -STRIP = i386-mingw32-strip +STRIP = i386-mingw32-strip --strip-unneeded else ifeq ($(SYSTEM),MINGW32_NT-5.1) CC = gcc @@ -11,10 +11,18 @@ CXX = g++ LD = g++ STRIP = strip else +DISTRIB=$(shell cat /etc/issue | cut -f 1 -d\ | head -1) +ifeq ($(DISTRIB), CentOS) +CC = i686-pc-mingw32-gcc +CXX = i686-pc-mingw32-g++ +LD = i686-pc-mingw32-g++ +STRIP = i686-pc-mingw32-strip --strip-unneeded +else CC = i586-mingw32msvc-gcc CXX = i586-mingw32msvc-g++ LD = i586-mingw32msvc-g++ -STRIP = i586-mingw32msvc-strip +STRIP = i586-mingw32msvc-strip --strip-unneeded +endif endif endif @@ -218,6 +226,11 @@ ALL_DEPS = $(addsuffix .dep, $(notdir $(basename $(WHOLE_SOURCES)))) all: dep luac.exe lua-interface.dll lua-interface.exe +dist: all + mkdir -p ../lua-interface-dist-win32 + $(STRIP) luac.exe lua-interface.dll lua-interface.exe + cp luac.exe lua-interface.dll lua-interface.exe ../lua-interface-dist-win32 + dep: $(ALL_DEPS) luac.exe: $(LUAC_OBJECTS) |