# Makefile generated by Visual-MinGW 0.53a alpha.
# More information: http://visual-mingw.sourceforge.net/


# Suffixes
#
.SUFFIXES:
.SUFFIXES: .c .cpp .rc .o .res

# Directories
#
top_srcdir = .
VPATH = ./.

MWINDOWS = -mwindows

# Dependencies generator
#
CPP = cpp
MAKEDEPEND = $(CPP) -MM $< -MT $@ -MP $(INCLUDES) $(CPPFLAGS)


# Configuration 1, "Debug"
#
ifeq ($(CFG),Debug)
# directories
OBJDIR = $(top_srcdir)/.
DEPDIR = $(top_srcdir)/_deps
# names of programs
ifndef WINE
CC = gcc
CPP = cpp
CXX = g++
RC = windres -O COFF
else
CC = winegcc
CPP = winecpp
CXX = wineg++
RC = wrc
endif
AR = ar
ARFLAGS = -cru
RANLIB = ranlib
DLLWRAP = dllwrap
RM = rm -f
# compiler flags
INCLUDES =
RCINCLUDES =
SYMBOLS = -g
OPTIMIZE =
WARNINGS = -W -Wall
CPPFLAGS = 
CFLAGS = $(SYMBOLS) $(OPTIMIZE)
ALL_CFLAGS = $(WARNINGS)  $(CFLAGS)
ALL_CXXFLAGS = $(WARNINGS)  $(CFLAGS)
# linker flags
STRIP =
LIBDIRS =
LIBS = 
LDFLAGS = $(STRIP) $(MWINDOWS) 
# target
target = $(top_srcdir)/new
endif


# Configuration 2, "Release"
#
ifeq ($(CFG),Release)
# directories
OBJDIR = $(top_srcdir)/.
DEPDIR = $(top_srcdir)/_deps
# names of programs
ifndef WINE
CC = gcc
CPP = cpp
CXX = g++
RC = windres -O COFF
else
CC = winegcc
CPP = winecpp
CXX = wineg++
RC = wrc
endif
AR = ar
ARFLAGS = -cru
RANLIB = ranlib
DLLWRAP = dllwrap
RM = rm -f
# compiler flags
INCLUDES =
RCINCLUDES =
SYMBOLS =
OPTIMIZE = -O2
WARNINGS = -W -Wall
CPPFLAGS = 
CFLAGS = $(SYMBOLS) $(OPTIMIZE)
ALL_CFLAGS = $(WARNINGS)  $(CFLAGS)
ALL_CXXFLAGS = $(WARNINGS)  $(CFLAGS)
# linker flags
STRIP = -s
LIBDIRS =
LIBS = -ltegel -lalleg
LDFLAGS = $(STRIP) $(MWINDOWS) 
# target
target = $(top_srcdir)/tigs_cpb
endif


OBJECTS = \
	Animation.o \
	AudioSampler.o \
	Barak.o \
	Bullet.o \
	CollectableObject.o \
	Dude.o \
	FallingEnemy.o \
	Finch.o \
	FlyingEnemy.o \
	Game.o \
	GameScreen.o \
	Ghost.o \
	GreenBeli.o \
	Gunner.o \
	HideObject.o \
	Main.o \
	MainCharacter.o \
	Marquee.o \
	Messages.o \
	Misc.o \
	MusicObject.o \
	MyINI.o \
	Object.o \
	ObjectStates.o \
	ParticleObject.o \
	Particles.o \
	PauseMenu.o \
	Pip.o \
	Play.o \
	Possession.o \
	RandomSounds.o \
	RescuePoint.o \
	Resources.o \
	Sound.o \
	StaticEnemy.o \
	Switch.o \
	Zombie.o


# Explicit rules
#
COMPILE.c = $(CC) $(INCLUDES) $(CPPFLAGS) $(ALL_CFLAGS)
COMPILE.cxx = $(CXX) $(INCLUDES) $(CPPFLAGS) $(ALL_CXXFLAGS)
LINK.c = $(CC) $(CFLAGS) $(LDFLAGS) $(LIBDIRS) $^ -o $@
LINK.cxx = $(CXX) $(CFLAGS) $(LDFLAGS) $(LIBDIRS) $^ -o $@

$(OBJDIR)/%.o : %.c
	$(MAKEDEPEND) > $(DEPDIR)/$*.Po
	$(COMPILE.c) -c $< -o $@

$(OBJDIR)/%.o : %.cpp
	$(MAKEDEPEND) > $(DEPDIR)/$*.Po
	$(COMPILE.cxx) -c $< -o $@

$(OBJDIR)/%.res : %.rc
	$(MAKEDEPEND) > $(DEPDIR)/$*.Pr
	$(RC) $(RCINCLUDES) $(CPPFLAGS) $< $@


# Targets
#
all:	$(target)

debug:
	$(target)

clean:
	$(RM) $(target) $(addprefix $(OBJDIR)/, $(OBJECTS))

$(target): $(addprefix $(OBJDIR)/, $(OBJECTS))
	$(LINK.cxx) $(LIBS)


# Automatic Dependencies
#
-include $(DEPDIR)/Animation.Po
-include $(DEPDIR)/AudioSampler.Po
-include $(DEPDIR)/Barak.Po
-include $(DEPDIR)/Bullet.Po
-include $(DEPDIR)/CollectableObject.Po
-include $(DEPDIR)/Dude.Po
-include $(DEPDIR)/FallingEnemy.Po
-include $(DEPDIR)/Finch.Po
-include $(DEPDIR)/FlyingEnemy.Po
-include $(DEPDIR)/Game.Po
-include $(DEPDIR)/GameScreen.Po
-include $(DEPDIR)/Ghost.Po
-include $(DEPDIR)/GreenBeli.Po
-include $(DEPDIR)/Gunner.Po
-include $(DEPDIR)/HideObject.Po
-include $(DEPDIR)/Main.Po
-include $(DEPDIR)/MainCharacter.Po
-include $(DEPDIR)/Marquee.Po
-include $(DEPDIR)/Messages.Po
-include $(DEPDIR)/Misc.Po
-include $(DEPDIR)/MusicObject.Po
-include $(DEPDIR)/MyINI.Po
-include $(DEPDIR)/Object.Po
-include $(DEPDIR)/ObjectStates.Po
-include $(DEPDIR)/ParticleObject.Po
-include $(DEPDIR)/Particles.Po
-include $(DEPDIR)/PauseMenu.Po
-include $(DEPDIR)/Pip.Po
-include $(DEPDIR)/Play.Po
-include $(DEPDIR)/Possession.Po
-include $(DEPDIR)/RandomSounds.Po
-include $(DEPDIR)/RescuePoint.Po
-include $(DEPDIR)/Resources.Po
-include $(DEPDIR)/Sound.Po
-include $(DEPDIR)/StaticEnemy.Po
-include $(DEPDIR)/Switch.Po
-include $(DEPDIR)/Zombie.Po


