# To use this Makefile:
# 1. Change the definitions of COMPILE and LINK to
#    point to your compiler.
# 2. flex must be available if reformatDmis.cc is to be made.

COMPILE = /usr/bin/g++ -c -v -g -Wall
LINK = /usr/bin/g++ -v

../bin/check4Lines : check4Lines.o
	$(LINK) -o $@ check4Lines.o

check4Lines.o : check4Lines.cc
	$(COMPILE) -o $@ check4Lines.cc

../bin/insertConf : insertConf.o
	$(LINK) -o $@ insertConf.o

insertConf.o : insertConf.cc
	$(COMPILE) -o $@ insertConf.cc

../bin/reformatDmis : reformatDmis.o
	 $(LINK) -o $@ reformatDmis.o

reformatDmis.o : reformatDmis.cc
	$(COMPILE) -o reformatDmis.o reformatDmis.cc

reformatDmis.cc : reformatDmis.lex
	flex -L -t reformatDmis.lex > reformatDmis.cc

../bin/removeLines : removeLines.o
	 $(LINK) -o ../bin/removeLines removeLines.o

removeLines.o : removeLines.cc
	$(COMPILE) -o removeLines.o removeLines.cc

