CC = gxx


ENGINEHDR = Dungeon.h DungeonCell.h FieldType.h \
	    GlyphType.h Interface.h Player.h RList.h \
            TileType.h Universe.h \
            types.h global.h

ENGINEOBJS = Dungeon.o DungeonCell.o FieldType.o \
            Interface.o Player.o \
            TileType.o Universe.o

CUSTOMOBJS = main.o MyDisplay.o MyDungeonStructure.o \
             MyFields.o MyTiles.o DecentLOS.o PatchyLOS.o \
             SlantGenerator.o

rlgame.exe: $(ENGINEOBJS) $(CUSTOMOBJS)
	$(CC) -pg -o rlgame.exe $(CUSTOMOBJS) $(ENGINEOBJS)

%.o: %.cxx $(ENGINEHDR) $(CUSTOMHDR)
	$(CC) -O2 -W -Wall -pg -c $<