From 5f6477b676197a886c3ea59d3fad510b87fb0c40 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Fri, 11 Mar 2011 17:41:48 +0000 Subject: [PATCH] invert links git-svn-id: http://svn.net-core.org/repos/t-engine4@2996 51575b47-30f0-44d4-a5cc-537603b46e54 --- build/TEngine.make | 4 ++-- build/TEngineRunner.make | 4 ++-- build/runner.lua | 5 ++++- build/te4core.lua | 5 +---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build/TEngine.make b/build/TEngine.make index 9001b22c81..2267625f57 100644 --- a/build/TEngine.make +++ b/build/TEngine.make @@ -29,7 +29,7 @@ ifeq ($(config),debug) CFLAGS += $(CPPFLAGS) $(ARCH) -g -fPIC -ggdb -fPIC CXXFLAGS += $(CFLAGS) LDFLAGS += -shared -L../bin/Debug - LIBS += -lphysfs -llua -lfov -lluasocket -lluaprofiler -llualanes -llpeg -ltcodimport -llxp -lexpatstatic -lluamd5 -lluazlib -lSDL -lSDL_ttf -lSDL_image -lSDL_mixer -lGL -lGLU -lm -lpthread + LIBS += -lphysfs -llua -lfov -lluasocket -lluaprofiler -llualanes -llpeg -ltcodimport -llxp -lexpatstatic -lluamd5 -lluazlib RESFLAGS += $(DEFINES) $(INCLUDES) LDDEPS += ../bin/Debug/libphysfs.a ../bin/Debug/liblua.a ../bin/Debug/libfov.a ../bin/Debug/libluasocket.a ../bin/Debug/libluaprofiler.a ../bin/Debug/liblualanes.a ../bin/Debug/liblpeg.a ../bin/Debug/libtcodimport.a ../bin/Debug/liblxp.a ../bin/Debug/libexpatstatic.a ../bin/Debug/libluamd5.a ../bin/Debug/libluazlib.a LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) @@ -53,7 +53,7 @@ ifeq ($(config),release) CFLAGS += $(CPPFLAGS) $(ARCH) -O2 -fomit-frame-pointer -fPIC -O3 -fPIC CXXFLAGS += $(CFLAGS) LDFLAGS += -s -shared -L../bin/Release - LIBS += -lphysfs -llua -lfov -lluasocket -lluaprofiler -llualanes -llpeg -ltcodimport -llxp -lexpatstatic -lluamd5 -lluazlib -lSDL -lSDL_ttf -lSDL_image -lSDL_mixer -lGL -lGLU -lm -lpthread + LIBS += -lphysfs -llua -lfov -lluasocket -lluaprofiler -llualanes -llpeg -ltcodimport -llxp -lexpatstatic -lluamd5 -lluazlib RESFLAGS += $(DEFINES) $(INCLUDES) LDDEPS += ../bin/Release/libphysfs.a ../bin/Release/liblua.a ../bin/Release/libfov.a ../bin/Release/libluasocket.a ../bin/Release/libluaprofiler.a ../bin/Release/liblualanes.a ../bin/Release/liblpeg.a ../bin/Release/libtcodimport.a ../bin/Release/liblxp.a ../bin/Release/libexpatstatic.a ../bin/Release/libluamd5.a ../bin/Release/libluazlib.a LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) diff --git a/build/TEngineRunner.make b/build/TEngineRunner.make index 30bebbe8b4..e8f4b50886 100644 --- a/build/TEngineRunner.make +++ b/build/TEngineRunner.make @@ -29,7 +29,7 @@ ifeq ($(config),debug) CFLAGS += $(CPPFLAGS) $(ARCH) -g -ggdb CXXFLAGS += $(CFLAGS) LDFLAGS += -L../bin/Debug - LIBS += -lrunner-physfs -lrunner-lua -lm -ldl -lpthread + LIBS += -lrunner-physfs -lrunner-lua -lm -ldl -lSDL -lSDL_ttf -lSDL_image -lSDL_mixer -lGL -lGLU -lpthread RESFLAGS += $(DEFINES) $(INCLUDES) LDDEPS += ../bin/Debug/librunner-physfs.a ../bin/Debug/librunner-lua.a LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) @@ -53,7 +53,7 @@ ifeq ($(config),release) CFLAGS += $(CPPFLAGS) $(ARCH) -O2 -fomit-frame-pointer -O3 CXXFLAGS += $(CFLAGS) LDFLAGS += -s -L../bin/Release - LIBS += -lrunner-physfs -lrunner-lua -lm -ldl -lpthread + LIBS += -lrunner-physfs -lrunner-lua -lm -ldl -lSDL -lSDL_ttf -lSDL_image -lSDL_mixer -lGL -lGLU -lpthread RESFLAGS += $(DEFINES) $(INCLUDES) LDDEPS += ../bin/Release/librunner-physfs.a ../bin/Release/librunner-lua.a LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) diff --git a/build/runner.lua b/build/runner.lua index 200d105f1d..253df0956f 100644 --- a/build/runner.lua +++ b/build/runner.lua @@ -25,13 +25,16 @@ project "TEngineRunner" links { "runner-physfs", "runner-lua", "m" } configuration "linux" - links { "dl", "pthread" } + links { "dl", "SDL", "SDL_ttf", "SDL_image", "SDL_mixer", "GL", "GLU", "m", "pthread" } defines { [[TENGINE_HOME_PATH='".t-engine"']], 'SELFEXE_LINUX' } configuration "windows" + links { "mingw32", "SDLmain", "SDL", "SDL_ttf", "SDL_image", "SDL_mixer", "OPENGL32", "GLU32", "wsock32" } defines { [[TENGINE_HOME_PATH='"T-Engine"']], 'SELFEXE_WINDOWS' } configuration "macosx" defines { [[TENGINE_HOME_PATH='".t-engine"']], "USE_TENGINE_MAIN", 'SELFEXE_MACOSX' } + linkoptions { "-framework SDL", "-framework SDL_image", "-framework SDL_ttf", "-framework SDL_mixer", "-framework Cocoa", "-framework OpenGL" } + links { "IOKit" } configuration {"Debug"} postbuildcommands { "cp ../bin/Debug/t-engine ../t-engine", } diff --git a/build/te4core.lua b/build/te4core.lua index 6d66c5cff2..45e0128de7 100644 --- a/build/te4core.lua +++ b/build/te4core.lua @@ -29,9 +29,7 @@ project "TEngine" defines { [[TENGINE_HOME_PATH='".t-engine"']], "TE4CORE_VERSION="..TE4CORE_VERSION } configuration "macosx" - linkoptions { "-framework SDL", "-framework SDL_image", "-framework SDL_ttf", "-framework SDL_mixer", "-framework Cocoa", "-framework OpenGL" } files { "../src/mac/SDL*" } - links { "IOKit" } includedirs { "/System/Library/Frameworks/OpenGL.framework/Headers", "/Library/Frameworks/SDL.framework/Headers", @@ -45,7 +43,7 @@ configuration "macosx" configuration "windows" linkoptions { "-mwindows" } - links { "mingw32", "SDLmain", "SDL", "SDL_ttf", "SDL_image", "SDL_mixer", "OPENGL32", "GLU32", "wsock32" } + links { "mingw32" } defines { [[TENGINE_HOME_PATH='"T-Engine"']], 'SELFEXE_WINDOWS' } prebuildcommands { "windres src/windows/icon.rc -O coff -o src/windows/icon.res" } linkoptions { "src/windows/icon.res" } @@ -53,7 +51,6 @@ configuration "windows" configuration "linux" buildoptions { "-fPIC" } - links { "SDL", "SDL_ttf", "SDL_image", "SDL_mixer", "GL", "GLU", "m", "pthread" } defines { [[TENGINE_HOME_PATH='".t-engine"']], 'SELFEXE_LINUX' } configuration {"linux", "Debug"} -- GitLab