SRCS = gfx.c gfx_utils.c input.c misc.c music.c beings.cpp bull.cpp main.cpp map.cpp
OBJS = $(subst .cpp,.o,$(SRCS)) 

CXX = g++
DELETER = del /q
DEPENDS = makefile.dep
EXENAME = project.exe

CXXFLAGS = -O3
LIBFLAGS = -lalleg -mwindows

# Don't touch anything down from here and you'll be safe ;)).

$(EXENAME): $(OBJS)
	$(CXX) $(CXXFLAGS) $(OBJS) $(LIBFLAGS) -o $(EXENAME)

makefile.dep:
	$(CXX) -MM $(SRCS) >$(DEPENDS)

depend:
	$(CXX) -MM $(SRCS) >$(DEPENDS)

clean:
	$(DELETER) $(EXENAME)
	$(DELETER) $(OBJS)

include $(DEPENDS)

.PHONY: depend clean