Makefile #1

  • //
  • guest/
  • stephen_moon/
  • scripts/
  • c_progs/
  • printLinesFromJournal/
  • Makefile
  • View
  • Commits
  • Open Download .zip Download (284 B)
#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~


# Change User Description Committed
#1 7793 Stephen Moon a small c program which displays the problem line as well as 10 lines prior as well as 10 lines after the problem line