aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-05-14 16:32:10 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-05-14 16:32:10 -0400
commit8a8fab0c68d867d1e1e870252819d15e2b6d0c6f (patch)
treef35604f801ed150fda8daf4db1a15b9c912a5ae3 /Makefile
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..838da7e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+CXXFLAGS := -std=c++23 -O3 -ggdb -g3 -march=native -mtune=native `sdl2-config --cflags` -Iimgui -Iimgui/backends
+LDFLAGS := `sdl2-config --libs`
+
+all: main
+
+main: imgui/imgui.o imgui/imgui_draw.o imgui/imgui_widgets.o imgui/imgui_tables.o imgui/backends/imgui_impl_sdl2.o imgui/backends/imgui_impl_sdlrenderer2.o
+
+image.ppm: main
+ time ./main > image.ppm
+
+clean:
+ rm -f main image.ppm
+
+view: image.ppm
+ feh image.ppm
+