Makefile
branchv_0
changeset 11 0aeedc35ebed
parent 7 e6065118326f
child 19 262828ae9682
equal deleted inserted replaced
10:8382173bfc35 11:0aeedc35ebed
    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.png
    23 run: build/shader-shark
    24 	$(<) --texture build/jazz.png
    24 	SHADER_SHARK_DATA_DIR=. $(<)
    25 
    25 
    26 build:
    26 build:
    27 	mkdir -p $(@)
    27 	mkdir -p $(@)
    28 	
    28 	
    29 SRC= \
    29 SRC= \
    35     FileMonitor.cpp
    35     FileMonitor.cpp
    36 
    36 
    37 build/shader-shark: $(SRC) build *.h
    37 build/shader-shark: $(SRC) build *.h
    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++)
    40 
       
    41 build/jazz.png: textures/jazz.png
       
    42 	mkdir -p build
       
    43 	cp --reflink=auto $(<) $(@)
       
    44 	
       
    45 build/jazz.rgba: textures/jazz.png
       
    46 	mkdir -p build
       
    47 	convert -format rgba $(<) $(@)