summaryrefslogtreecommitdiff
path: root/Makefile
blob: a283aeb07dda6b0b3bdb335ab7adf54ec1d5d1e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: all default clean test ktxes debug

all: default ktxes test

default: gen_mipmaps.c fix_mali_ktx.c gen_ktx.c gen_array.c piglit_ktx.c
	gcc -g gen_mipmaps.c -o gen_mipmaps -L ~/repos/mesa/lib -lGL -lwaffle-1 -lktx
	gcc -g gen_array.c piglit_ktx.c -o gen_array -L ~/repos/mesa/lib -lGL -lwaffle-1 -lktx
	gcc -g gen_mipmaps_man.c -o gen_mipmaps_man -L ~/repos/mesa/lib -lGL -lwaffle-1 -lktx
	gcc -g fix_mali_ktx.c -o fix_mali_ktx -lktx -L ~/repos/mesa/lib -lGL
	gcc -g gen_ktx.c -o gen_ktx -lktx
	make -C astc-encoder/Source

ktxes:
	./make_ktxes.sh waffles.jpg

test:
	ninja -C ~/repos/piglit2
	MESA_DEBUG=1 ~/repos/piglit2/bin/khr_compressed_astc-miptree_gl

debug:
	ninja -C ~/repos/piglit2
	MESA_DEBUG=1 gdb --args ~/repos/piglit2/bin/khr_compressed_astc-miptree_gl

clean:
	cd ..
	git clean -df decompressed compressed