# on turing, use next line;  on other platforms, use the following line
#CROSS=-m32
CROSS=

CC=g++
CFLAGS=-g -Wall $(CROSS)
LFLAGS=$(CROSS)
OBJS=test_vector.o MenuDriver.o

default: test

all: test extra

test: $(OBJS)
	$(CC) -o test_vector $(LFLAGS) $(OBJS)

# list of file dependencies
test_vector.o: vector.h MenuDriver.h MenuDriver.tcc
MenuDriver.o: MenuDriver.h MenuDriver.tcc


# the following rule is used to compile .cpp files to .o
.cpp.o:
	$(CC) $(CFLAGS) -c $<


# the following removes all .o files, but leaves the executable
clean:
	rm -f *.o
