CC=gcc CFLAGS=-c -Wall EXE_STOP=stop-from-c EXE_CONT=cont-from-c EXES=$(EXE_STOP) $(EXE_CONT) SRC_SUFFIX=.c SRC_STOP=$(EXE_STOP)$(SRC_SUFFIX) SRC_CONT=$(EXE_CONT)$(SRC_SUFFIX) all: $(EXES) $(EXE_STOP): $(EXE_STOP)$(SRC_SUFFIX) $(CC) -o $@ $< $(EXE_CONT): $(EXE_CONT)$(SRC_SUFFIX) $(CC) -o $@ $< clean: rm -rf $(EXES)