comparison make/linux/makefiles/rules.make @ 1972:f95d63e2154a

6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
author stefank
date Tue, 23 Nov 2010 13:22:55 -0800
parents c18cbe5936b8
children 5d801e6b9a80 b92c45f2bc75
comparison
equal deleted inserted replaced
1971:e33f46fc48ed 1972:f95d63e2154a
1 # 1 #
2 # Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
149 # The non-PIC object files are only generated for 32 bit platforms. 149 # The non-PIC object files are only generated for 32 bit platforms.
150 ifdef LP64 150 ifdef LP64
151 %.o: %.cpp 151 %.o: %.cpp
152 @echo Compiling $< 152 @echo Compiling $<
153 $(QUIETLY) $(REMOVE_TARGET) 153 $(QUIETLY) $(REMOVE_TARGET)
154 $(QUIETLY) $(COMPILE.CC) -o $@ $< $(COMPILE_DONE) 154 $(QUIETLY) $(COMPILE.CC) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
155 else 155 else
156 %.o: %.cpp 156 %.o: %.cpp
157 @echo Compiling $< 157 @echo Compiling $<
158 $(QUIETLY) $(REMOVE_TARGET) 158 $(QUIETLY) $(REMOVE_TARGET)
159 $(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \ 159 $(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \
160 $(subst $(VM_PICFLAG), ,$(COMPILE.CC)) -o $@ $< $(COMPILE_DONE), \ 160 $(subst $(VM_PICFLAG), ,$(COMPILE.CC)) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE), \
161 $(COMPILE.CC) -o $@ $< $(COMPILE_DONE)) 161 $(COMPILE.CC) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE))
162 endif 162 endif
163 163
164 %.o: %.s 164 %.o: %.s
165 @echo Assembling $< 165 @echo Assembling $<
166 $(QUIETLY) $(REMOVE_TARGET) 166 $(QUIETLY) $(REMOVE_TARGET)
167 $(QUIETLY) $(AS.S) -o $@ $< $(COMPILE_DONE) 167 $(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
168 168
169 %.s: %.cpp 169 %.s: %.cpp
170 @echo Generating assembly for $< 170 @echo Generating assembly for $<
171 $(QUIETLY) $(GENASM.CC) -o $@ $< 171 $(QUIETLY) $(GENASM.CC) -o $@ $<
172 $(QUIETLY) $(DEMANGLE) $(COMPILE_DONE) 172 $(QUIETLY) $(DEMANGLE) $(COMPILE_DONE)