Commits

Lars Viklund  committed 4e43e22

Add Linux build.sh

  • Participants
  • Parent commits 2b58c32

Comments (0)

Files changed (1)

+#!/usr/bin/env bash
+
+CXXFLAGS="
+ -std=c++11
+ -stdlib=libc++"
+
+CPPFLAGS="
+ -Isrc
+ -I${HOME}/opt/clang-3.4-libc++/SFML-git/include"
+
+LDFLAGS="
+ -L${HOME}/opt/clang-3.4-libc++/SFML-git/lib
+ -Wl,-rpath
+ -Wl,${HOME}/opt/clang-3.4-libc++/SFML-git/lib"
+
+slade_LIBS="
+ -lsfml-audio
+ -lsfml-graphics
+ -lsfml-system
+ -lsfml-window
+ -lrt
+ -lassimp
+ -lGLEW
+ -lGLU
+ -lGL"
+
+# -lsfml-network
+
+clang++ \
+  ${CXXFLAGS} \
+  ${CPPFLAGS} \
+  ${LDFLAGS} \
+ -o slade \
+ src/*.cc \
+ src/*.cpp \
+ ${slade_LIBS}