Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5299 | igevorse | 1 | OUTFILE = bin\21days |
2 | CXX = g++ |
||
3 | OBJS = obj/main.o obj/game.o obj/interface.o obj/sys.o |
||
4 | |||
5 | CXXFLAGS = -Wno-write-strings -D _WIN32 |
||
6 | |||
7 | all: $(OUTFILE) |
||
8 | |||
9 | dirs: |
||
10 | if not exist "bin" mkdir bin |
||
11 | if not exist "obj" mkdir obj |
||
12 | |||
13 | $(OUTFILE): dirs $(OBJS) |
||
14 | $(CXX) -o $@ $(OBJS) |
||
15 | |||
16 | obj/%.o: %.cpp |
||
17 | $(CXX) $(CXXFLAGS) -c $< -o $@ |
||
18 | |||
19 | clean: |
||
20 | if exist "obj\*.o" del /Q obj\*.o |
||
21 | if exist "bin\21days.exe" del /Q bin\21days.exe |
||
22 | if exist "bin" rd bin |
||
23 | if exist "obj" rd obj |
||
24 | |||
25 | rebuild: clean $(OUTFILE) |
||
26 | |||
27 | .PHONY: dirs clean rebuild> |