Highlight things
You can not 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
545B

  1. ARGS:=${TARGET} < source/main.c
  2. GCC:=gcc
  3. D.versions:=-D_XOPEN_SOURCE=700
  4. GCC.warnings:=-Wall -Wextra -Wpedantic -Wvla -Wshadow -Wundef
  5. GCC.debug:=-O0 -ggdb -pg -fno-inline
  6. CLANG:=clang
  7. CLANG.warnings:=-Weverything
  8. VALGRIND:=valgrind
  9. VALGRIND.flags:=--track-origins=yes --leak-check=full --show-leak-kinds=all
  10. chad_test:
  11. ${CLANG} ${CPPFLAGS} ${D.versions} ${CLANG.warnings} ${SRC} -o ${TARGET}
  12. ${GCC} ${CPPFLAGS} ${D.versions} ${GCC.debug} ${GCC.warnings} ${SRC} -o ${TARGET}
  13. ${VALGRIND} ${VALGRIND.flags} $(shell pwd)/${TARGET} ${ARGS}