APPNAME=hello_ordered_semaphores CC=cc CFLAGS=-g -std=c11 -Wall -Wextra LIBS=-pthread $(APPNAME): $(APPNAME).c $(CC) $(CFLAGS) $(APPNAME).c -o $(APPNAME) $(LIBS) all: $(APPNAME) lint memcheck helgrind .PHONY: lint lint: cpplint --filter=-readability/casting $(APPNAME).c .PHONY: memcheck memcheck: valgrind --tool=memcheck ./$(APPNAME) .PHONY: helgrind helgrind: valgrind --quiet --tool=helgrind ./$(APPNAME) .PHONY: clean clean: rm -f $(APPNAME)