You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
479 B
Makefile

7 months ago
CXXFLAGS := -std=c++23 -O3 -ggdb -g3 -march=native -mtune=native `sdl2-config --cflags` -Iimgui -Iimgui/backends
LDFLAGS := `sdl2-config --libs` -lSDL2_image
7 months ago
all: main
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
7 months ago
image.ppm: main
time ./main > image.ppm
clean:
rm -f main image.ppm
view: image.ppm
feh image.ppm