test using the kompute library and possibly vulkan
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kompute_tests/test3/Makefile

22 lines
532 B

CC = gcc
LD = gcc
CFLAGS = -Wall -Wextra -pedantic -std=c11 -g -fPIC
# link kompute as a static library and the rest as dynamic
STATIC_LIBS =
DYNAMIC_LIBS = -lvulkan
LDFLAGS = -L/usr/local/lib \
-Wl,-Bstatic ${STATIC_LIBS} \
-Wl,-Bdynamic ${DYNAMIC_LIBS} \
-Wl,--as-needed
test3: main.o vk_result_to_str.o
$(LD) main.o vk_result_to_str.o -o test3 ${LDFLAGS}
vk_result_to_str.o: vk_result_to_str.c
$(CC) ${CFLAGS} -c vk_result_to_str.c
main.o: main.c
$(CC) ${CFLAGS} -c main.c
clean:
rm -f test3 main.o vk_result_to_str.o