CC     = g++
INC    = ../include
CFLAGS = -g -Wall
OBJS   = generic_item.o item.o item_manager.o weapon.o baseitem.o \
         armour.o bag.o writeable.o

#########################################################################

target : $(OBJS)

generic_item.o : generic_item.h ../location/location.h \
                 ../include/utility.h generic_item.cc
	$(CC) -I$(INC) $(CFLAGS) -c generic_item.cc

item.o : item.h item.cc
	$(CC) -I$(INC) $(CFLAGS) -c item.cc

baseitem.o : baseitem.h baseitem.cc
	$(CC) -I$(INC) $(CFLAGS) -c baseitem.cc

weapon.o : weapon.h weapon.cc
	$(CC) -I$(INC) $(CFLAGS) -c weapon.cc

armour.o : armour.h armour.cc
	$(CC) -I$(INC) $(CFLAGS) -c armour.cc

bag.o : bag.h bag.cc
	$(CC) -I$(INC) $(CFLAGS) -c bag.cc

writeable.o : writeable.h writeable.cc
	$(CC) -I$(INC) $(CFLAGS) -c writeable.cc

item_manager.o : item_manager.h item.h item_manager.cc
	$(CC) -I$(INC) $(CFLAGS) -c item_manager.cc

clean:
	rm *.o





