-
Notifications
You must be signed in to change notification settings - Fork 0
/
macfile
37 lines (33 loc) · 1.72 KB
/
macfile
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
32
33
34
35
36
37
CPPC=g++
OBJ = main.obj
CFLAGS = -std=c++17 -O2 -Istb -I. -DLinux -I/usr/local/include -IVULKAN_SDK/include
LDFLAGS = -lglfw -lvulkan -LVULKAN_SDK/lib
SRCRENDERER = CommandBuffer.cpp Debug.cpp Device.cpp framebuffer.cpp Frames.cpp GraphicsPipeline.cpp ImageViews.cpp LogicalDevice.cpp PhysicalDevice.cpp Renderer.cpp Renderer.h Shader.cpp Surface.cpp Swapchain.cpp Textures.cpp UniformBuffer.cpp
SRCWINDOW = Window.cpp Window.h
SRC = main.cpp
Drizzle2D:
brew install glfw glm spirv-tools
$(CPPC) -c $(CFLAGS) CommandBuffer.cpp -o x64/Release/CommandBuffer.obj
$(CPPC) -c $(CFLAGS) Debug.cpp -o x64/Release/Debug.obj
$(CPPC) -c $(CFLAGS) Device.cpp -o x64/Release/Device.obj
$(CPPC) -c $(CFLAGS) framebuffer.cpp -o x64/Release/framebuffer.obj
$(CPPC) -c $(CFLAGS) Frames.cpp -o x64/Release/Frames.obj
$(CPPC) -c $(CFLAGS) GraphicsPipeline.cpp -o x64/Release/GraphicsPipeline.obj
$(CPPC) -c $(CFLAGS) "Image Views.cpp" -o x64/Release/ImageViews.obj
$(CPPC) -c $(CFLAGS) "Logical Device.cpp" -o x64/Release/LogicalDevice.obj
$(CPPC) -c $(CFLAGS) "Physical Device.cpp" -o x64/Release/PhysicalDevice.obj
$(CPPC) -c $(CFLAGS) Renderer.cpp -o x64/Release/Renderer.obj
$(CPPC) -c $(CFLAGS) Shader.cpp -o x64/Release/Shader.obj
$(CPPC) -c $(CFLAGS) Surface.cpp -o x64/Release/Surface.obj
$(CPPC) -c $(CFLAGS) Swapchain.cpp -o x64/Release/Swapchain.obj
$(CPPC) -c $(CFLAGS) Textures.cpp -o x64/Release/Textures.obj
$(CPPC) -c $(CFLAGS) UniformBuffer.cpp -o x64/Release/UniformBuffer.obj
$(CPPC) -c $(CFLAGS) Window.cpp -o x64/Release/Window.obj
$(CPPC) -c $(CFLAGS) main.cpp -o x64/Release/main.obj
$(CPPC) $(CFLAGS) -o Drizzle2D.elf x64/Release/*.obj $(LDFLAGS)
.PHONY: test clean
test:
./Drizzle2D.elf
clean:
rm -f x64/Release/*
rm -R -f stb