1
2
3
4
5
6
7
8
9
10
11
12
APPNAME=$(shell basename $(shell pwd))
$(APPNAME): $(APPNAME).c
cc -g -Wall -Wextra $(APPNAME).c -o $(APPNAME) -pthread
.PHONY: gitignore
gitignore:
echo $(APPNAME) > .gitignore
.PHONY: clean
clean:
rm -f $(APPNAME)