blob: 54b3fd01db49c4ae92df2a4ee17ccb12264cfd70 [file] [log] [blame]
# https://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html
CFLAGS = -O
test: prog
prog: CFLAGS = -g
prog : prog.o
echo prog $(CFLAGS)
prog.o : prog.c
echo cc $(CFLAGS) -o prog.o -c prog.c
prog.c:
touch prog.c