| 123456789101112131415161718 |
- SRCS=$(shell find ./src -name '*.c' -type f)
- HDRS=$(shell find ./src -name '*.h' -type f)
- CFLAGS=-ansi -m64 -Og -fsanitize=address -ggdb \
- -pedantic -Wall -Wextra -Wshadow \
- -Wcast-align -Wunused -Wconversion -Wmisleading-indentation \
- -Wdouble-promotion -Wformat=2 -Wbad-function-cast \
- -Wmissing-declarations \
- -Wmissing-prototypes -Wnested-externs -Werror
- sdl3: src/sdl3.c ${HDRS}
- gcc $(shell pkg-config --cflags sdl3) $(shell pkg-config --libs sdl3) -ggdb ${CFLAGS} $^ -o $@
- cint: src/cint.c ${HDRS}
- gcc -ggdb ${CFLAGS} $^ -o $@
- tags: ${SRCS} ${HDRS}
- ctags --kinds-all=* --totals=yes $^
|