aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-05-14 19:58:40 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-05-14 19:58:40 -0400
commit7d174816febeed6977a7e90be5c80e9b99b11df9 (patch)
tree12b41ae02f03bf5bcaef84690f0a8824d71c7183 /Makefile
parentaf1740bde341ef7703696cb7fd26d66cd8a37462 (diff)
many changes, more controls
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 838da7e..9c5a43a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
CXXFLAGS := -std=c++23 -O3 -ggdb -g3 -march=native -mtune=native `sdl2-config --cflags` -Iimgui -Iimgui/backends
-LDFLAGS := `sdl2-config --libs`
+LDFLAGS := `sdl2-config --libs` -lSDL2_image
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
+main: main.cpp 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
+ g++ $(CXXFLAGS) $^ $(LDFLAGS) -o main
image.ppm: main
time ./main > image.ppm