# 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 $(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 = -lalleg
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 = -lalleg
LDFLAGS = $(STRIP) $(MWINDOWS) 
# target
target = $(top_srcdir)/Devospace
endif


OBJECTS = \
	background.o \
	bullet.o \
	campaign.o \
	control.o \
	edit.o \
	enemy.o \
	item.o \
	level.o \
	main.o \
	menu.o \
	particle.o \
	play.o \
	player.o \
	shockwave.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)/background.Po
-include $(DEPDIR)/bullet.Po
-include $(DEPDIR)/campaign.Po
-include $(DEPDIR)/control.Po
-include $(DEPDIR)/edit.Po
-include $(DEPDIR)/enemy.Po
-include $(DEPDIR)/item.Po
-include $(DEPDIR)/level.Po
-include $(DEPDIR)/main.Po
-include $(DEPDIR)/menu.Po
-include $(DEPDIR)/particle.Po
-include $(DEPDIR)/play.Po
-include $(DEPDIR)/player.Po
-include $(DEPDIR)/shockwave.Po


