Makefile.common (479B)
- # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
- all: $(EXE)
- .c:
- rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
- $(CC) -std=c99 $(CFLAGS) -o $@ $< $(LDFLAGS)
- .c.o:
- rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
- $(CC) -std=c99 $(CFLAGS) -c -o $@ $<
- .PHONY: coverage
- coverage:
- $(GCOV) -b $(EXE)
- .PHONY: clean
- clean:
- rm -fr $(EXE)
- rm -fr ${EXE:=.c.gcov} ${EXE:=.gcda} ${EXE:=.gcno}