Changeset 872 in 3DVCSoftware for trunk/build/linux
- Timestamp:
- 27 Mar 2014, 10:11:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build/linux/common/makefile.base
r608 r872 14 14 15 15 CPP = g++ 16 CC = gcc 16 17 AR = ar 17 18 LD = $(CPP) … … 63 64 # 64 65 # release cpp 65 RELEASE_CPPFLAGS = -O3 - ffloat-store -Wuninitialized66 RELEASE_CPPFLAGS = -O3 -Wuninitialized 66 67 67 68 … … 208 209 rm -f $(OBJ_DIR)/$*.d.d 209 210 endef 211 define COMPILE_AND_DEPEND_RELEASE_C 212 $(CC) -c -MMD -MF $(OBJ_DIR)/$*.r.d -MT $(OBJ_DIR)/$*.r.o $(CPPFLAGS) $(RELEASE_CPPFLAGS) -o $@ $(CURDIR)/$< 213 @cp $(OBJ_DIR)/$*.r.d $(OBJ_DIR)/$*.r.P; \ 214 sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ 215 -e '/^$$/ d' -e 's/$$/ :/' < $(OBJ_DIR)/$*.r.d >> $(OBJ_DIR)/$*.r.P; \ 216 rm -f $(OBJ_DIR)/$*.r.d 217 endef 218 define COMPILE_AND_DEPEND_DEBUG_C 219 $(CC) -c -MMD -MF $(OBJ_DIR)/$*.d.d -MT $(OBJ_DIR)/$*.d.o $(CPPFLAGS) $(DEBUG_CPPFLAGS) -o $@ $(CURDIR)/$< 220 @cp $(OBJ_DIR)/$*.d.d $(OBJ_DIR)/$*.d.P; \ 221 sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ 222 -e '/^$$/ d' -e 's/$$/ :/' < $(OBJ_DIR)/$*.d.d >> $(OBJ_DIR)/$*.d.P; \ 223 rm -f $(OBJ_DIR)/$*.d.d 224 endef 210 225 211 226 # create release objects … … 251 266 # create release objects 252 267 $(OBJ_DIR)/%.r.o: $(SRC_DIR)/%.c 253 $(COMPILE_AND_DEPEND_RELEASE )268 $(COMPILE_AND_DEPEND_RELEASE_C) 254 269 255 270 # create debug objects 256 271 $(OBJ_DIR)/%.d.o: $(SRC_DIR)/%.c 257 $(COMPILE_AND_DEPEND_DEBUG )272 $(COMPILE_AND_DEPEND_DEBUG_C) 258 273 259 274 # create release objects 260 275 $(OBJ_DIR)/%.r.o: $(SRC_DIR1)/%.c 261 $(COMPILE_AND_DEPEND_RELEASE )276 $(COMPILE_AND_DEPEND_RELEASE_C) 262 277 263 278 # create debug objects 264 279 $(OBJ_DIR)/%.d.o: $(SRC_DIR1)/%.c 265 $(COMPILE_AND_DEPEND_DEBUG )280 $(COMPILE_AND_DEPEND_DEBUG_C) 266 281 267 282 # create release objects 268 283 $(OBJ_DIR)/%.r.o: $(SRC_DIR2)/%.c 269 $(COMPILE_AND_DEPEND_RELEASE )284 $(COMPILE_AND_DEPEND_RELEASE_C) 270 285 271 286 # create debug objects 272 287 $(OBJ_DIR)/%.d.o: $(SRC_DIR2)/%.c 273 $(COMPILE_AND_DEPEND_DEBUG )288 $(COMPILE_AND_DEPEND_DEBUG_C) 274 289 275 290 # create release objects 276 291 $(OBJ_DIR)/%.r.o: $(SRC_DIR3)/%.c 277 $(COMPILE_AND_DEPEND_RELEASE )292 $(COMPILE_AND_DEPEND_RELEASE_C) 278 293 279 294 # create debug objects 280 295 $(OBJ_DIR)/%.d.o: $(SRC_DIR3)/%.c 281 $(COMPILE_AND_DEPEND_DEBUG )296 $(COMPILE_AND_DEPEND_DEBUG_C) 282 297 283 298 # create release objects 284 299 $(OBJ_DIR)/%.r.o: $(SRC_DIR4)/%.c 285 $(COMPILE_AND_DEPEND_RELEASE )300 $(COMPILE_AND_DEPEND_RELEASE_C) 286 301 287 302 # create debug objects 288 303 $(OBJ_DIR)/%.d.o: $(SRC_DIR4)/%.c 289 $(COMPILE_AND_DEPEND_DEBUG )304 $(COMPILE_AND_DEPEND_DEBUG_C) 290 305 291 306
Note: See TracChangeset for help on using the changeset viewer.