Skip to content
Snippets Groups Projects
Commit 5f6477b6 authored by dg's avatar dg
Browse files

invert links

git-svn-id: http://svn.net-core.org/repos/t-engine4@2996 51575b47-30f0-44d4-a5cc-537603b46e54
parent c3de4bee
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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)
......
......@@ -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", }
......
......@@ -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"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment