2-pthreads/{hello_ordered_wait → position_race}/Makefile RENAMED
@@ -1,8 +1,10 @@
1
- all: hello_ordered_wait
2
 
3
- hello_ordered_wait: hello_ordered_wait.c
4
- cc -g -Wall -Wextra hello_ordered_wait.c -o hello_ordered_wait -pthread
 
 
5
 
6
  .PHONY: clean
7
  clean:
8
- rm -f hello_ordered_wait *.o
1
+ APPNAME=position_race
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