@@ -1,10 +1,10 @@
|
|
1 |
-
APPNAME
|
2 |
|
3 |
all: $(APPNAME)
|
4 |
|
5 |
%: %.c
|
6 |
cc -g -Wall -Wextra $^ -o $@ -pthread
|
7 |
|
8 |
.PHONY: clean
|
9 |
clean:
|
10 |
rm -f $(APPNAME) *.o
|
1 |
+
APPNAME=$(shell basename `pwd`)
|
2 |
|
3 |
all: $(APPNAME)
|
4 |
|
5 |
%: %.c
|
6 |
cc -g -Wall -Wextra $^ -o $@ -pthread
|
7 |
|
8 |
.PHONY: clean
|
9 |
clean:
|
10 |
rm -f $(APPNAME) *.o
|