#general makefile PROGS=jr SRC=jr.c CC=gcc LOPTION=-lm -o OPTION=-c -Wall -ansi -pedantic all: $(PROGS) $(PROGS): $(PROGS).o $(CC) $(LOPTION) $@ $@.o $(PROGS).o: $(SRC) $(CC) $(OPTION) $(SRC) clean: rm -f $(PROGS).o $(PROGS) $(PROGS).cpp~ $(PROGS).c~ $(PROGS).exe Makefile~