CC=g++
CFLAGS=-g -Wall
#CROSSFLAGS = -m32
CROSSFLAGS = 
OBJS=Binpack.o Heuristics.o

# rule for building the executable
Binpack: $(OBJS)
	$(CC) -o Binpack $(OBJS) $(CROSSFLAGS)

all:  Binpack


# list of file dependencies
Binpack.o:     Binpack.cpp Heuristics.h
Heuristics.o:  Heuristics.h Heuristics.cpp SlowPQ.h SlowPQ.tcc FastPQ.h FastPQ.tcc PriorityQueue.h Exceptions.h

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


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