CC = gcc
CFLAGS = -g -Wall

all: sigtest orderly maskex

# The variable $@ has the value of the target. 
# The variable $^ holds all prerequisites.
# The variable $< holds the first prerequisite.

maskex: maskex.o
	${CC} ${CFLAGS} -o $@ $^

sigtest: sigtest.o
	${CC} ${CFLAGS} -o $@ $^ 

orderly: orderly.o 
	${CC} ${CFLAGS} -o $@ $^

%.o: %.c
	${CC} ${CFLAGS}  -c $<

clean:
	rm *.o 
