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