From: John Tsiombikas Date: Tue, 23 Jan 2018 11:24:03 +0000 (+0200) Subject: env file for cross-compiling and accompanying makefile improvements X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=commitdiff_plain;h=264eac31b6aedaf449fbaf5868ff39ed6064137b;ds=sidebyside env file for cross-compiling and accompanying makefile improvements --- diff --git a/Makefile b/Makefile index b7e244b..2c38091 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ LDFLAGS = $(libpath) -ldrawtext $(libgl_$(sys)) $(libal_$(sys)) -lm -lgmath -lvm -limago -lresman -lpthread -lassimp -ltreestore -lgoatvr \ `pkg-config --libs sdl2 freetype2` -lpng -ljpeg -lz -lvorbisfile -lgomp -sys = $(shell uname -s | sed 's/MINGW.*/mingw/') +sys ?= $(shell uname -s | sed 's/MINGW.*/mingw/') libgl_Linux = -lGL -lGLU -lGLEW libgl_Darwin = -framework OpenGL -lGLEW libgl_mingw = -lopengl32 -lglu32 -lglew32 diff --git a/setup_cross_env b/setup_cross_env new file mode 100644 index 0000000..b16d810 --- /dev/null +++ b/setup_cross_env @@ -0,0 +1,4 @@ +# source this +export sys=mingw +export CC=i686-w64-mingw32-gcc +export CXX=i686-w64-mingw32-g++