• R/O
  • SSH
  • HTTPS

railsim2: Commit


Commit MetaInfo

Revision4 (tree)
Time2011-03-05 20:00:39
Authorokadu

Log Message

[okadu] Makefile 修正: Debug, Release 振り分け / 出力ファイル名振り分け

Change Summary

Incremental Difference

--- trunk/Makefile (revision 3)
+++ trunk/Makefile (revision 4)
@@ -1,11 +1,20 @@
11 ########################################
22 # make 設定
33 .PHONY: all relink cleant clean debug run
4+COMMAND_DEL = rm
45
56 ########################################
7+# Debug or Release
8+BUILD_MODE = Debug
9+#BUILD_MODE = Release
10+
11+ifeq ($(BUILD_MODE),Debug)
12+ DEBUG_FLAGS = -g
13+endif
14+
15+########################################
616 # コンパイラ設定
717 CC = g++
8-#DEBUG_FLAGS = -g
918 CFLAGS = -O2 -mwindows -w $(DEBUG_FLAGS)
1019 DXSDK_PATH = C:\Program Files (x86)\Microsoft DirectX 9.0 SDK (Summer 2004)
1120 DXSDK_INCLUDE_PATH = $(DXSDK_PATH)/include
@@ -18,9 +27,9 @@
1827
1928 ########################################
2029 # ビルド入出力設定
21-OBJ_DIR = gcc_obj
30+OBJ_DIR = $(BUILD_MODE)_gcc
2231 TARGET_DIR = RailSim2
23-TARGET = $(TARGET_DIR)/RailSim2_gcc.exe
32+TARGET = $(TARGET_DIR)/RailSim2_gcc_$(BUILD_MODE).exe
2433
2534 RS2_SRCFILES = $(wildcard *.cpp)
2635 RS2_OBJFILES = $(addprefix $(OBJ_DIR)/, $(RS2_SRCFILES:.cpp=.o))
Show on old repository browser