1# https://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html
2
3CFLAGS = -O
4
5test: prog
6
7prog: CFLAGS = -g
8prog : prog.o
9	echo prog $(CFLAGS)
10
11prog.o : prog.c
12	echo cc $(CFLAGS) -o prog.o -c prog.c
13
14prog.c:
15	touch prog.c
16
17
18