pthreads/{hello_w → hello_i_of_w_pri}/Makefile RENAMED
@@ -1,6 +1,8 @@
1
- hello_w: hello_w.c
2
- cc -g -Wall -Wextra hello_w.c -o hello_w -pthread
 
 
3
 
4
  .PHONY: clean
5
  clean:
6
- rm -f hello_w
1
+ APPNAME=hello_i_of_w
2
+
3
+ $(APPNAME): $(APPNAME).c
4
+ cc -g -Wall -Wextra $(APPNAME).c -o $(APPNAME) -pthread
5
 
6
  .PHONY: clean
7
  clean:
8
+ rm -f $(APPNAME)