mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2026-03-01 02:08:18 +00:00
Start of example program
This commit is contained in:
20
example/Makefile
Normal file
20
example/Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
BUILD_DIR=build
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD_DIR)
|
||||
|
||||
glfw:
|
||||
mkdir -p $(BUILD_DIR)/glfw
|
||||
cd $(BUILD_DIR)/glfw \
|
||||
&& cmake -DGLFW_BUILD_TESTS=off -DGLFW_BUILD_DOCS=off -DGLFW_BUILD_EXAMPLES=off ../../external/glfw \
|
||||
&& make
|
||||
|
||||
example:
|
||||
mkdir -p $(BUILD_DIR)/example
|
||||
cd $(BUILD_DIR)/example \
|
||||
&& $(CXX) $(CPPFLAGS) $(CXXFLAGS) -ohmmexample \
|
||||
-I../../external/glfw/include \
|
||||
-L../glfw/src \
|
||||
-lglew -lglfw3 \
|
||||
-framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo \
|
||||
../../main.cpp
|
||||
Reference in New Issue
Block a user