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