Makefile 275 B

12345678910
  1. SRCS=$(shell find ./src -name '*.c' -type f)
  2. HDRS=$(shell find ./src -name '*.h' -type f)
  3. CFLAGS=-ansi -Wno-builtin-declaration-mismatch -Wall -Wextra -pedantic
  4. cint: ${SRCS} ${HDRS}
  5. gcc -ggdb ${CFLAGS} $^ -o $@
  6. tags: ${SRCS} ${HDRS}
  7. ctags --kinds-all=* --totals=yes $^