equal
deleted
inserted
replaced
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 build/jazz.rgba |
23 run: build/shader-shark build/jazz.png |
24 $(<) --texture build/jazz.rgba |
24 $(<) --texture build/jazz.png |
25 |
25 |
26 build: |
26 build: |
27 mkdir -p $(@) |
27 mkdir -p $(@) |
28 |
28 |
29 SRC=Shark.cpp shader-shark.cpp |
29 SRC=Shark.cpp shader-shark.cpp ImageLoader.cpp |
30 |
30 |
31 build/shader-shark: $(SRC) build *.h |
31 build/shader-shark: $(SRC) build *.h |
32 $(CXX) -std=c++20 -g -o $(@) $(SRC) $$(pkg-config --cflags --libs \ |
32 $(CXX) -std=c++20 -g -o $(@) $(SRC) $$(pkg-config --cflags --libs \ |
33 epoxy x11 glu glm) |
33 epoxy x11 glu glm Magick++) |
34 |
34 |
|
35 build/jazz.png: textures/jazz.png |
|
36 mkdir -p build |
|
37 cp --reflink=auto $(<) $(@) |
|
38 |
35 build/jazz.rgba: textures/jazz.png |
39 build/jazz.rgba: textures/jazz.png |
36 mkdir -p build |
40 mkdir -p build |
37 convert -format rgba $(<) $(@) |
41 convert -format rgba $(<) $(@) |