equal
deleted
inserted
replaced
1 # ShaderShark |
1 # OHP3D |
2 # Copyright © 2023 František Kučera (Frantovo.cz, GlobalCode.info) |
2 # Copyright © 2023 František Kučera (Frantovo.cz, GlobalCode.info) |
3 # |
3 # |
4 # This program is free software: you can redistribute it and/or modify |
4 # This program is free software: you can redistribute it and/or modify |
5 # it under the terms of the GNU General Public License as published by |
5 # it under the terms of the GNU General Public License as published by |
6 # the Free Software Foundation, version 3 of the License. |
6 # the Free Software Foundation, version 3 of the License. |
11 # GNU General Public License for more details. |
11 # GNU General Public License for more details. |
12 # |
12 # |
13 # You should have received a copy of the GNU General Public License |
13 # You should have received a copy of the GNU General Public License |
14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 |
15 |
16 all: build/shader-shark |
16 all: build/ohp3d |
17 |
17 |
18 .PHONY: all clean run |
18 .PHONY: all clean run |
19 |
19 |
20 clean: |
20 clean: |
21 rm -rf build |
21 rm -rf build |
22 |
22 |
23 run: build/shader-shark |
23 run: build/ohp3d |
24 SHADER_SHARK_DATA_DIR=. $(<) |
24 OHP3D_DATA_DIR=. $(<) |
25 |
25 |
26 SRC= \ |
26 SRC= \ |
27 Shark.cpp \ |
27 OHP3D.cpp \ |
28 shader-shark.cpp \ |
28 ohp3d.cpp \ |
29 ImageLoader.cpp \ |
29 ImageLoader.cpp \ |
30 Texture.cpp \ |
30 Texture.cpp \ |
31 Shader.cpp \ |
31 Shader.cpp \ |
32 Program.cpp \ |
32 Program.cpp \ |
33 XAttrs.cpp \ |
33 XAttrs.cpp \ |
34 FileMonitor.cpp |
34 FileMonitor.cpp |
35 |
35 |
36 build/shader-shark: $(SRC) *.h |
36 build/ohp3d: $(SRC) *.h |
37 mkdir -p build |
37 mkdir -p build |
38 $(CXX) -std=c++20 -g -o $(@) $(SRC) $$(pkg-config --cflags --libs \ |
38 $(CXX) -std=c++20 -g -o $(@) $(SRC) $$(pkg-config --cflags --libs \ |
39 epoxy x11 glu glm Magick++) |
39 epoxy x11 glu glm Magick++) |