# Generated automatically by Visual-MinGW.
# http://visual-mingw.sourceforge.net/

CC = g++
WRES = windres
DLLWRAP = dllwrap
CPPFLAGS = 
LDBASEFLAGS = -mwindows  -lalleg
INCDIRS = 
OPTIMIZ = -O2
STRIP = -s

ifeq ($(MAKECMDGOALS),debug)
CXXFLAGS =  $(INCDIRS) -g 
LDFLAGS = $(LDBASEFLAGS)
else
CXXFLAGS =  $(INCDIRS) $(OPTIMIZ) 
LDFLAGS = $(STRIP) $(LDBASEFLAGS)
endif

SRCDIR = .
BINDIR = .
LIBDIRS = 

%.o : %.rc
	$(WRES) $(CPPFLAGS) $< $@

OBJS	=\
	div.o\
	funnie.o\
	main.o\
	particles.o

TARGET =	$(BINDIR)\3dfun.exe

# Targets
all:	$(TARGET)

debug:	$(TARGET)

cleanobjs:
	rm -f $(OBJS)

cleanbin:
	rm -f $(TARGET)

clean:	cleanobjs cleanbin

# Dependency rules
$(TARGET): $(OBJS)
	$(CXX) -o $(BINDIR)\3dfun.exe $(OBJS) $(INCDIRS) $(LIBDIRS) $(LDFLAGS)

div.o: div.cpp funnie.h
funnie.o: funnie.cpp funnie.h
main.o: main.cpp funnie.h
particles.o: particles.cpp funnie.h
