Tupfile (735B)
1 WARNINGS = -Wall -Wextra -Werror 2 COMMON_FLAGS = $(WARNINGS) -fdiagnostics-color=always -fsanitize=undefined,address 3 CFLAGS = $(COMMON_FLAGS) 4 CXXFLAGS = -std=c++23 $(COMMON_FLAGS) 5 6 LDLIBS_aio = -lrt 7 LDLIBS_alsa-simple = -lasound 8 LDLIBS_gl = -lglfw -lGL -lm 9 LDLIBS_gl-3d = -lglfw -lGL -lm 10 LDLIBS_gl-lighting = -lglfw -lGL -lm 11 LDLIBS_gl-asteroids = -lglfw -lGL -lm -lasound 12 LDLIBS_io_uring = -luring 13 LDLIBS_sdl = -lSDL2 14 LDLIBS_sdl-gl = -lSDL2 -lGL 15 LDLIBS_pulse-async-client = -lpulse 16 LDLIBS_pulse-simple-client = -lpulse-simple -lm 17 LDLIBS_sctp = -lsctp 18 LDLIBS_sqlite-saveload = -lsqlite3 19 20 : foreach src/*.c |> cc $(CFLAGS) -o %o %f $(LDLIBS_%B) |> bin/%B 21 : foreach src/*.cpp |> c++ $(CXXFLAGS) -o %o %f $(LDLIBS_%B) |> bin/%B 22 23 .gitignore