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

CC=g++
CFLAGS=-g -Wall $(CROSS)
LFLAGS=$(CROSS)
OBJS=Dealer.o Test.o Car.o


# rule for building the executable
default: $(OBJS)
	$(CC) -o Test $(LFLAGS) $(OBJS)

# list of file dependencies
Test.o: Car.h Dealer.h
Dealer.o: Car.h Dealer.h
Car.o:    Car.h


# 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
