diff options
author | Pixel <pixel@nobis-crew.org> | 2009-11-06 21:53:50 +0100 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-11-06 21:53:50 +0100 |
commit | a6ad7a6bdf6ca49ec211ee3c429c4f58b59e4f3c (patch) | |
tree | 2ccc2ede089dbc842c3ae2adf214e456c3b8d966 /Makefile.mingw32 | |
parent | 011d229cc5da218c280d1cd8af998bfaad04e0bd (diff) |
Actually compiling these ressources in...
Diffstat (limited to 'Makefile.mingw32')
-rw-r--r-- | Makefile.mingw32 | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile.mingw32 b/Makefile.mingw32 index 9ef4853..1827667 100644 --- a/Makefile.mingw32 +++ b/Makefile.mingw32 @@ -4,12 +4,14 @@ CC = i386-mingw32-gcc CXX = i386-mingw32-g++ LD = i386-mingw32-g++ STRIP = i386-mingw32-strip --strip-unneeded +WINDRES = i386-mingw32-windres else ifeq ($(SYSTEM),MINGW32_NT-5.1) CC = gcc CXX = g++ LD = g++ -STRIP = strip +STRIP = strip --strip-unneeded +WINDRES = windres else DISTRIB=$(shell cat /etc/issue | cut -f 1 -d\ | head -1) ifeq ($(DISTRIB), CentOS) @@ -17,11 +19,13 @@ CC = i686-pc-mingw32-gcc CXX = i686-pc-mingw32-g++ LD = i686-pc-mingw32-g++ STRIP = i686-pc-mingw32-strip --strip-unneeded +WINDRES = i686-pc-mingw32-windres else CC = i586-mingw32msvc-gcc CXX = i586-mingw32msvc-g++ LD = i586-mingw32msvc-g++ STRIP = i586-mingw32msvc-strip --strip-unneeded +WINDRES = i586-mingw32msvc-windres endif endif endif @@ -239,11 +243,11 @@ luac.exe: $(LUAC_OBJECTS) lua-interface.dll: $(LUAINTERFACE_DLL_OBJECTS) $(LUAINTERFACE_MAIN_OBJECTS) $(LD) -shared -Wl,--output-def=lua-interface.def -Wl,--out-implib=lua-interface.a -o lua-interface.dll $(LUAINTERFACE_DLL_OBJECTS) $(LUAINTERFACE_MAIN_OBJECTS) $(LDFLAGS) $(LUAINTERFACE_LDFLAGS) $(LIBS) -lua-interface.exe: $(LUAINTERFACE_OBJECTS) - $(LD) -o lua-interface.exe $(LUAINTERFACE_OBJECTS) ./lua-interface.a $(LDFLAGS) $(LIBS) +lua-interface.exe: $(LUAINTERFACE_OBJECTS) lua-interface-res.o + $(LD) -o lua-interface.exe $(LUAINTERFACE_OBJECTS) ./lua-interface.a $(LDFLAGS) $(LIBS) lua-interface-res.o -lua-interface-light.exe: lua-interface-light.dll $(LUAINTERFACE_OBJECTS) - $(LD) -o lua-interface-light.exe $(LUAINTERFACE_OBJECTS) ./lua-interface.a $(LDFLAGS) $(LIBS) +lua-interface-light.exe: lua-interface-light.dll $(LUAINTERFACE_OBJECTS) lua-interface-res.o + $(LD) -o lua-interface-light.exe $(LUAINTERFACE_OBJECTS) ./lua-interface.a $(LDFLAGS) $(LIBS) lua-interface-res.o lua-interface-light.dll: $(LUAINTERFACE_DLL_OBJECTS) $(LUAINTERFACE_LIGHT_OBJECTS) $(LD) -shared -Wl,--output-def=lua-interface.def -Wl,--out-implib=lua-interface.a -o lua-interface.dll $(LUAINTERFACE_DLL_OBJECTS) $(LUAINTERFACE_LIGHT_OBJECTS) $(LIBS) $(LDFLAGS) ../lua-modules-iup-win32/luaiup.a $(IUP_LIBS) @@ -252,6 +256,9 @@ lua-interface-light.dll: $(LUAINTERFACE_DLL_OBJECTS) $(LUAINTERFACE_LIGHT_OBJECT lua-interface-light.o: lua-interface.cpp $(CC) $(CPPFLAGS) -c -o lua-interface-light.o src/lua-interface.cpp -DLUA_INTERFACE_LIGHT +lua-interface-res.o: src/lua-interface.rc src/lua-interface.manifest src/lua.ico src/pen.cur + $(WINDRES) -o lua-interface-res.o src/lua-interface.rc + clean: rm -f lua-interface.dll lua-interface.exe lua-interface-light.exe luac.exe *.o *.dep *.a *.def |