Commits

mcc  committed 5a81696

Linux support

  • Participants
  • Parent commits 97d2126
  • Tags ld24_2

Comments (0)

Files changed (2)

File curl/getcurl.sh

 tar zxvf curl-7.27.0.tar.gz
 mkdir curl-product
 mkdir curl-product-win
+mkdir curl-product-lin
 
 # After this, go inside curl-7.2.7.0 folder and say ./configure --prefix=$PWD/../curl-product; make install
 # Then you have to go in and delete the .la and .dylib, for SOME STUPID REASON.
 # Maybe this could be avoided by telling ./configure to build static only?
+# --enable-shared=no worked on Linux
 # Windows, I built by doing this:
-# cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Windows" -DCMAKE_TOOLCHAIN_FILE=/Users/mcc/work/p/tmp/toolchain.cmake -DCMAKE_INSTALL_PREFIX:PATH=/Users/mcc/work/p/evo/curl/curl-product-win -DCURL_STATICLIB=on -DBUILD_CURL_EXE=off -DBUILD_CURL_TESTS=off 
+# cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Windows" -DCMAKE_TOOLCHAIN_FILE=/Users/mcc/work/p/tmp/toolchain.cmake -DCMAKE_INSTALL_PREFIX:PATH=$PWD/../curl-product-win -DCURL_STATICLIB=on -DBUILD_CURL_EXE=off -DBUILD_CURL_TESTS=off 

File package/lin/Makefile

 ifeq (,$(PRODUCT))
 	PRODUCT=LD24
 endif
-LIBS = -lPolycode2DPhysics -lPolycode3DPhysics -lPolycodeLua -lPolycore -lfreetype -llibogg -llibvorbis -llibvorbisfile -lopenal -lphysfs -lpng -lz -lBox2D -lBulletDynamics -lBulletCollision -lBulletMultiThreaded -lBulletSoftBody -lBulletSoftBodySolvers_CPU -lBulletSoftBodySolvers_OpenCL_Mini -lLinearMath -lMiniCL -llua5.1 -lSDL -lGLU -lGL
-LDFLAGS = -L$(POLYROOT)/Framework/Core/lib -L$(POLYROOT)/Framework/Core/Dependencies/lib -L$(POLYROOT)/Framework/Modules/lib -L$(POLYROOT)/Framework/Modules/Dependencies/lib -L$(POLYROOT)/Framework/Bindings/Lua/Core/lib
+LIBS = -lcurl -lPolycode2DPhysics -lPolycode3DPhysics -lPolycodeLua -lPolycore -lfreetype -llibogg -llibvorbis -llibvorbisfile -lopenal -lphysfs -lpng -lz -lBox2D -lBulletDynamics -lBulletCollision -lBulletMultiThreaded -lBulletSoftBody -lBulletSoftBodySolvers_CPU -lBulletSoftBodySolvers_OpenCL_Mini -lLinearMath -lMiniCL -llua5.1 -lSDL -lGLU -lGL
+LDFLAGS = -L$(ROOT)/curl/curl-product-lin/lib -L$(POLYROOT)/Framework/Core/lib -L$(POLYROOT)/Framework/Core/Dependencies/lib -L$(POLYROOT)/Framework/Modules/lib -L$(POLYROOT)/Framework/Modules/Dependencies/lib -L$(POLYROOT)/Framework/Bindings/Lua/Core/lib
 ROOT = ../..
 SRC = $(ROOT)/source
 TSRC = $(ROOT)/PolycodeTemplate
-CXXFLAGS = -I$(POLYROOT)/Framework/Bindings/Lua/Modules/2DPhysics/include -I$(POLYROOT)/Framework/Bindings/Lua/Modules/3DPhysics/include -I$(POLYROOT)/Framework/Bindings/Lua/Core/include -I$(POLYROOT)/Framework/Core/Dependencies/include/lua5.1 -I$(POLYROOT)/Framework/Core/include -I$(POLYROOT)/Framework/Core/Dependencies/include/AL -I$(POLYROOT)/Framework/Core/Dependencies/include -I$(POLYROOT)/Framework/Modules/Dependencies/include -I$(POLYROOT)/Framework/Modules/Dependencies/include/bullet -I$(POLYROOT)/Framework/Modules/include -I$(ROOT)/lua/Include -I$(SRC) -I$(TSRC)
+CXXFLAGS = -I$(ROOT)/curl -I$(ROOT)/curl/curl-product-lin/include -I$(POLYROOT)/Framework/Bindings/Lua/Modules/2DPhysics/include -I$(POLYROOT)/Framework/Bindings/Lua/Modules/3DPhysics/include -I$(POLYROOT)/Framework/Bindings/Lua/Core/include -I$(POLYROOT)/Framework/Core/Dependencies/include/lua5.1 -I$(POLYROOT)/Framework/Core/include -I$(POLYROOT)/Framework/Core/Dependencies/include/AL -I$(POLYROOT)/Framework/Core/Dependencies/include -I$(POLYROOT)/Framework/Modules/Dependencies/include -I$(POLYROOT)/Framework/Modules/Dependencies/include/bullet -I$(POLYROOT)/Framework/Modules/include -I$(ROOT)/lua/Include -I$(SRC) -I$(TSRC) -DCURL_STATICLIB
 CFLAGS = $(CXXFLAGS)
 ifeq (,$(DEBUG))
 GCC = g++
 	rm -f LD24_lin.zip
 	zip -r LD24_lin.zip LD24
 
-$(PRODUCT).exe: main.o PolycodeTemplateApp.o bridge.o playtest.o dos.o cpVect.o program.o svgloader.o terminal.o ProjectLUA.o Physics2DLUA.o Physics3DLUA.o
-	$(LINK) main.o PolycodeTemplateApp.o bridge.o playtest.o dos.o cpVect.o program.o svgloader.o terminal.o ProjectLUA.o Physics2DLUA.o Physics3DLUA.o $(LIBS) -o $(PRODUCT).exe
+$(PRODUCT).exe: main.o PolycodeTemplateApp.o bridge.o playtest.o dos.o cpVect.o program.o PolycodeDownloader.o svgloader.o terminal.o ProjectLUA.o Physics2DLUA.o Physics3DLUA.o
+	$(LINK) main.o PolycodeTemplateApp.o bridge.o playtest.o dos.o cpVect.o program.o PolycodeDownloader.o svgloader.o terminal.o ProjectLUA.o Physics2DLUA.o Physics3DLUA.o $(LIBS) -o $(PRODUCT).exe
 
 main.o:
 	$(BUILD) -c $(TSRC)/main.cpp
 program.o:
 	$(BUILD) -c $(SRC)/program.cpp
 
+PolycodeDownloader.o:
+	$(BUILD) -c $(ROOT)/curl/PolycodeDownloader.cpp
+
 svgloader.o:
 	$(BUILD) -c $(SRC)/svgloader.cpp