11# TinyEngine Build Recipe
22# Author: Nicholas McDonald
3- # Version 1.0
3+ # Version 1.7
44# Tested on GNU/Linux
55
66# Install Location Configuration
7- LIBPATH = /usr/ local/lib
8- INCPATH = /usr/ local/include
7+ LIBPATH = $( HOME ) /. local/lib
8+ INCPATH = $( HOME ) /. local/include
99
1010# Compilation Settings
1111CC = g++ -std=c++17
@@ -33,18 +33,18 @@ all: setup helpers install
3333.PHONY : setup
3434setup :
3535 @echo " Copying Core Header Files ..." ;
36- @if [ ! -d " $( INCPATH) " ]; then mkdir $(INCPATH ) ; fi ;
37- @if [ ! -d " $( INCPATH) /TinyEngine" ]; then mkdir $(INCPATH ) /TinyEngine; fi ;
38- @cp TinyEngine.h $(INCPATH ) /TinyEngine/TinyEngine
39- @cp include/audio.h $(INCPATH ) /TinyEngine/Audio
40- @cp include/event.h $(INCPATH ) /TinyEngine/Event
41- @cp include/view.h $(INCPATH ) /TinyEngine/View
42- @cp include/utility/buffer.cpp $(INCPATH ) /TinyEngine/Buffer
43- @cp include/utility/instance.cpp $(INCPATH ) /TinyEngine/Instance
44- @cp include/utility/model.cpp $(INCPATH ) /TinyEngine/Model
45- @cp include/utility/shader.cpp $(INCPATH ) /TinyEngine/Shader
46- @cp include/utility/texture.cpp $(INCPATH ) /TinyEngine/Texture
47- @cp include/utility/target.cpp $(INCPATH ) /TinyEngine/Target
36+ @if [ ! -d $( INCPATH) ]; then mkdir $(INCPATH ) ; fi ;
37+ @if [ ! -d $( INCPATH) /TinyEngine ]; then mkdir $(INCPATH ) /TinyEngine; fi ;
38+ @cp TinyEngine.hpp $(INCPATH ) /TinyEngine/TinyEngine
39+ @cp include/audio.hpp $(INCPATH ) /TinyEngine/Audio
40+ @cp include/event.hpp $(INCPATH ) /TinyEngine/Event
41+ @cp include/view.hpp $(INCPATH ) /TinyEngine/View
42+ @cp include/utility/buffer.hpp $(INCPATH ) /TinyEngine/Buffer
43+ @cp include/utility/instance.hpp $(INCPATH ) /TinyEngine/Instance
44+ @cp include/utility/model.hpp $(INCPATH ) /TinyEngine/Model
45+ @cp include/utility/shader.hpp $(INCPATH ) /TinyEngine/Shader
46+ @cp include/utility/texture.hpp $(INCPATH ) /TinyEngine/Texture
47+ @cp include/utility/target.hpp $(INCPATH ) /TinyEngine/Target
4848 @cp include/imgui/imgui.h $(INCPATH ) /TinyEngine/imgui
4949 @cp include/imgui/imgui_impl_opengl3.h $(INCPATH ) /TinyEngine/imgui_impl_opengl3
5050 @cp include/imgui/imgui_impl_sdl.h $(INCPATH ) /TinyEngine/imgui_impl_sdl
@@ -66,7 +66,7 @@ install:
6666 @echo " Generating Static Library Archive ..." ;
6767 @ar cr tmp/libTinyEngine.a tmp/TinyEngine.o tmp/imgui.o tmp/imgui_demo.o tmp/imgui_draw.o tmp/imgui_widgets.o tmp/imgui_impl_opengl3.o tmp/imgui_impl_sdl.o
6868 @echo " Placing Compiled TinyEngine Library ..." ;
69- @if [ ! -d " $( LIBPATH) " ]; then mkdir $(LIBPATH ) ; fi ;
69+ @if [ ! -d $( LIBPATH) ]; then mkdir $(LIBPATH ) ; fi ;
7070 @cp tmp/libTinyEngine.a $(LIBPATH ) /libTinyEngine.a
7171 @rm -rf tmp
7272 @echo " Done" ;
@@ -75,14 +75,14 @@ install:
7575# TinyEngine Helpers #
7676# #####################
7777
78- HELPERS = camera color helper image object timer parse log
78+ HELPERS = camera color math image object timer parse log
7979
8080.PHONY : helpers
8181helpers :
8282 @echo " Copying Helper Header Files ..." ;
8383 @if [ ! -d " $( INCPATH) " ]; then mkdir $(INCPATH ) ; fi ;
8484 @if [ ! -d " $( INCPATH) /TinyEngine" ]; then mkdir $(INCPATH ) /TinyEngine; fi ;
85- @$(foreach var,$(HELPERS ) , cp include/helpers/$(var ) .h $(INCPATH ) /TinyEngine/$(var ) ;)
85+ @$(foreach var,$(HELPERS ) , cp include/helpers/$(var ) .hpp $(INCPATH ) /TinyEngine/$(var ) ;)
8686 @echo " Done" ;
8787
8888# ######################
@@ -92,16 +92,30 @@ helpers:
9292# Compiler / Linking Configuration
9393TINYLINK = -lpthread -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lGLEW -lboost_system -lboost_filesystem
9494
95- EXAMPLES = 0.0_Empty 0.1_Windowless \
96- 1.0_Image 2.0_Heightmap \
97- 3.0_Automata 4.0_Julia \
98- 5.0_Particles 6.0_Tree \
99- 7.0_SDF 8.0_Raymarch \
100- 9.0_Scene 10.0_Audio \
101- 11.0_Voronoi 12.0_Diffusion 13.0_Dither \
102- 15.0_Compute 16.0_Gravity 17.0_ODE3D \
95+ EXAMPLES = \
96+ 0.0_Empty \
97+ 0.1_Windowless \
98+ 1.0_Image \
99+ 2.0_Heightmap \
100+ 3.0_Automata \
101+ 4.0_Julia \
102+ 5.0_Particles \
103+ 6.0_Tree \
104+ 7.0_SDF \
105+ 8.0_Raymarch \
106+ 9.0_Scene \
107+ 10.0_Audio \
108+ 11.0_Voronoi \
109+ 12.0_Diffusion \
110+ 13.0_Dither \
111+ 15.0_Compute \
112+ 16.0_Gravity \
113+ 17.0_ODE3D \
10311418.0_SphereVoronoi \
104- 19.0_LBM2D 19.1_LBM3D 19.2_CollidingBalls \
115+ 19.0_LBM2D \
116+ 19.1_LBM3D \
117+ 19.2_CollidingBalls \
118+ 19.3_LBM3D \
10511920.0_Cloth
106120
107121.PHONY : examples
0 commit comments