Skip to content

Instantly share code, notes, and snippets.

@aolo2
Created November 5, 2018 21:50
Show Gist options
  • Select an option

  • Save aolo2/9c61b15e2776570dfbee6a172530ec48 to your computer and use it in GitHub Desktop.

Select an option

Save aolo2/9c61b15e2776570dfbee6a172530ec48 to your computer and use it in GitHub Desktop.
THIS = $(HOME)/Documents/code/study/vulkan
VULKAN_SDK_PATH = $(THIS)/1.1.85.0/x86_64
CFLAGS = -Wall -Wextra -pedantic -I$(VULKAN_SDK_PATH)/include
LDFLAGS = -L$(VULKAN_SDK_PATH)/lib `pkg-config --static --libs glfw3` -lvulkan
all:
gcc $(CFLAGS) main.c $(LDFLAGS)
debug:
gcc $(CFLAGS) main.c -DDEBUG $(LDFLAGS)
run:
LD_LIBRARY_PATH=$(VULKAN_SDK_PATH)/lib VK_LAYER_PATH=$(VULKAN_SDK_PATH)/etc/explicit_layer.d ./a.out
clean:
rm -rf a.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment