Makefile 617 B

123456789101112131415161718192021222324
  1. PKGS=sdl2 glew
  2. CFLAGS=-std=c99 -m64 -Og -ggdb \
  3. -pedantic -Wall -Wextra -Wshadow \
  4. -Wcast-align -Wunused -Wconversion -Wmisleading-indentation \
  5. -Wduplicated-cond -Wduplicated-branches -Wlogical-op \
  6. -Wdouble-promotion -Wformat=2 -Wbad-function-cast \
  7. -Wmissing-declarations -Wmissing-parameter-type \
  8. -Wmissing-prototypes -Wnested-externs -Werror \
  9. $(shell pkg-config --cflags $(PKGS))
  10. LIBS=$(shell pkg-config --libs $(PKGS)) -lm -lc
  11. SRCS=$(wildcard src/*)
  12. .PHONY: run
  13. run: TAGS ged
  14. ./ged
  15. ged: $(SRCS)
  16. $(CC) $(CFLAGS) -o ged src/main.c $(LIBS)
  17. TAGS: $(SRCS)
  18. exuberant-ctags --kinds-all=* --totals=yes -e -R