OLD | NEW |
1 COCOS_ROOT = ../../../.. | 1 COCOS_ROOT = ../../../.. |
2 COCOS2DX_PATH = $(COCOS_ROOT)/cocos2dx | 2 COCOS2DX_PATH = $(COCOS_ROOT)/cocos2dx |
3 | 3 |
4 INCLUDES = -I.. -I../Classes \ | 4 INCLUDES = -I.. -I../Classes \ |
5 -I$(COCOS_ROOT)/CocosDenshion/include \ | 5 -I$(COCOS_ROOT)/CocosDenshion/include \ |
6 -I$(COCOS_ROOT)/extensions \ | 6 -I$(COCOS_ROOT)/extensions \ |
7 -I$(COCOS_ROOT)/external \ | 7 -I$(COCOS_ROOT)/external \ |
8 -I$(COCOS_ROOT)/external/chipmunk/include/chipmunk \ | 8 -I$(COCOS_ROOT)/external/chipmunk/include/chipmunk \ |
9 | 9 |
10 SOURCES = ../Classes/AccelerometerTest/AccelerometerTest.cpp \ | 10 SOURCES = ../Classes/AccelerometerTest/AccelerometerTest.cpp \ |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 $(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST) | 126 $(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST) |
127 @mkdir -p $(@D) | 127 @mkdir -p $(@D) |
128 $(LOG_CXX)$(NACL_CXX) -MMD $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $
@ | 128 $(LOG_CXX)$(NACL_CXX) -MMD $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $
@ |
129 | 129 |
130 $(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST) | 130 $(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST) |
131 @mkdir -p $(@D) | 131 @mkdir -p $(@D) |
132 $(LOG_CC)$(NACL_CC) -MMD $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@ | 132 $(LOG_CC)$(NACL_CC) -MMD $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@ |
133 | 133 |
134 $(NMF): $(TARGET) | 134 $(NMF): $(TARGET) |
135 » $(NACL_SDK_ROOT)/tools/create_nmf.py -o $@ $(BIN_DIR)/*.nexe --objdump=i
686-nacl-objdump -L$(NACL_SDK_ROOT)/toolchain/linux_x86_newlib/x86_64-nacl/lib/
-s $(BIN_DIR) | 135 » $(NACL_SDK_ROOT)/tools/create_nmf.py -o $@ $(BIN_DIR)/*.nexe $(NMF_FLAGS
) -s $(BIN_DIR) |
136 | 136 |
137 PACKAGE_ROOT = $(OUT_DIR)/package | 137 PACKAGE_ROOT = $(OUT_DIR)/package |
138 | 138 |
139 package: all | 139 package: all |
140 rm -rf $(PACKAGE_ROOT) | 140 rm -rf $(PACKAGE_ROOT) |
141 mkdir -p $(PACKAGE_ROOT) | 141 mkdir -p $(PACKAGE_ROOT) |
142 /bin/cp -ar ../Resources/ $(PACKAGE_ROOT) | 142 /bin/cp -ar ../Resources/ $(PACKAGE_ROOT) |
143 /bin/cp -ar $(BIN_DIR)/* $(PACKAGE_ROOT) | 143 /bin/cp -ar $(BIN_DIR)/* $(PACKAGE_ROOT) |
144 /bin/cp res/*.js res/icon*.png res/manifest.json $(PACKAGE_ROOT) | 144 /bin/cp res/*.js res/icon*.png res/manifest.json $(PACKAGE_ROOT) |
145 /bin/cp res/package_index.html $(PACKAGE_ROOT)/index.html | 145 /bin/cp res/package_index.html $(PACKAGE_ROOT)/index.html |
146 | 146 |
147 zipfile: package | 147 zipfile: package |
148 rm -f $(OUT_DIR)/$(APP_NAME).zip | 148 rm -f $(OUT_DIR)/$(APP_NAME).zip |
149 cd $(PACKAGE_ROOT) && zip -r ../$(APP_NAME).zip . | 149 cd $(PACKAGE_ROOT) && zip -r ../$(APP_NAME).zip . |
150 | 150 |
151 run: all | 151 run: all |
152 /bin/cp -ar ../Resources/ . | 152 /bin/cp -ar ../Resources/ . |
153 $(NACL_SDK_ROOT)/tools/httpd.py --no_dir_check | 153 $(NACL_SDK_ROOT)/tools/httpd.py --no_dir_check |
154 | 154 |
155 .PHONY: run zipfile package | 155 .PHONY: run zipfile package |
OLD | NEW |