logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

Makefile.common (479B)


  1. # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  2. # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
  3. all: $(EXE)
  4. .c:
  5. rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
  6. $(CC) -std=c99 $(CFLAGS) -o $@ $< $(LDFLAGS)
  7. .c.o:
  8. rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
  9. $(CC) -std=c99 $(CFLAGS) -c -o $@ $<
  10. .PHONY: coverage
  11. coverage:
  12. $(GCOV) -b $(EXE)
  13. .PHONY: clean
  14. clean:
  15. rm -fr $(EXE)
  16. rm -fr ${EXE:=.c.gcov} ${EXE:=.gcda} ${EXE:=.gcno}