# This file coordinates the translation of lab16's driver.
# It uses some simple macros to provide a 'generic' Makefile
#  that can be easily modified to compile any project that
#  uses a single library.

EXEC = driver
LIB = LinkList
CFLAGS = -c -g
LFLAGS = -g

$(EXEC): $(EXEC).o $(LIB).o
	g++ $(LFLAGS) $(EXEC).o $(LIB).o -o $(EXEC)

$(EXEC).o: $(EXEC).cc $(LIB).h
	g++ $(CFLAGS) $(EXEC).cc

$(LIB).o: $(LIB).cc $(LIB).h
	g++ $(CFLAGS) $(EXEC).cc

clean:
	rm -f $(EXEC) *.o *~ *#

