
CC=gcc		# Compiler command
CFLAGS=-c       # Compiler options
OFLAG=-o        # Output flag

# $@ = target
# $^ = all dependencies
main: func5a.o func5b.o
	$(CC) $(OFLAG) $@  $^

# %  = match file name
# $< = FIRST dependency
%.o:  %.c  func5b.h
	$(CC) $(CFLAGS) $<
