-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
31 lines (27 loc) · 888 Bytes
/
Makefile
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
28
29
30
31
# CC specifies which compiler we're using
CC = g++
# COMPILER_FLAGS specifies the additional compilation options we're using
# -w suppresses all warnings
COMPILER_FLAGS = -w -DBX_CONFIG_DEBUG=0
BGFX_HEADERS = -Ibgfx/include -Ibx/include -Ibimg/include
#LINKER_FLAGS specifies the libraries we're linking against
LINKER_FLAGS = bgfx/.build/linux64_gcc/bin/libbgfx-shared-libRelease.so -lSDL2 -lGL -lX11 -ldl -lpthread -lrt
#This is the target that compiles our executable
all : main.cpp
./bgfx/.build/linux64_gcc/bin/shadercRelease \
-f v_simple.sc \
-o v_simple.bin \
--platform linux \
-p spirv \
--type vertex \
--verbose \
-i bgfx/src
./bgfx/.build/linux64_gcc/bin/shadercRelease \
-f f_simple.sc \
-o f_simple.bin \
--platform linux \
-p spirv \
--type fragment \
--verbose \
-i bgfx/src
$(CC) main.cpp -o main $(COMPILER_FLAGS) $(LINKER_FLAGS) $(BGFX_HEADERS)