equal
deleted
inserted
replaced
|
1 # ShaderShark |
|
2 # Copyright © 2023 František Kučera (Frantovo.cz, GlobalCode.info) |
|
3 # |
|
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 |
|
6 # the Free Software Foundation, version 3 of the License. |
|
7 # |
|
8 # This program is distributed in the hope that it will be useful, |
|
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
11 # GNU General Public License for more details. |
|
12 # |
|
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/>. |
|
15 |
|
16 all: build/shader-shark |
|
17 |
|
18 .PHONY: all clean run |
|
19 |
|
20 clean: |
|
21 rm -rf build |
|
22 |
|
23 run: build/shader-shark build/jazz.rgba |
|
24 $(<) --texture build/jazz.rgba |
|
25 |
|
26 build: |
|
27 mkdir -p $(@) |
|
28 |
|
29 SRC=Shark.cpp shader-shark.cpp |
|
30 |
|
31 build/shader-shark: $(SRC) build *.h |
|
32 $(CXX) -std=c++20 -g -o $(@) $(SRC) $$(pkg-config --cflags --libs \ |
|
33 epoxy x11 glu glm) |
|
34 |
|
35 build/jazz.rgba: textures/jazz.png |
|
36 mkdir -p build |
|
37 convert -format rgba $(<) $(@) |