kolibrios/programs/games/21days/Makefile.win
igevorse d6631a482a '21 days' game added
git-svn-id: svn://kolibrios.org@5299 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-12-30 22:24:30 +00:00

27 lines
503 B
Makefile
Executable File

OUTFILE = bin\21days
CXX = g++
OBJS = obj/main.o obj/game.o obj/interface.o obj/sys.o
CXXFLAGS = -Wno-write-strings -D _WIN32
all: $(OUTFILE)
dirs:
if not exist "bin" mkdir bin
if not exist "obj" mkdir obj
$(OUTFILE): dirs $(OBJS)
$(CXX) -o $@ $(OBJS)
obj/%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
if exist "obj\*.o" del /Q obj\*.o
if exist "bin\21days.exe" del /Q bin\21days.exe
if exist "bin" rd bin
if exist "obj" rd obj
rebuild: clean $(OUTFILE)
.PHONY: dirs clean rebuild