jdk/make/common/Program.gmk
changeset 12427 116544b5a04c
parent 12307 b34445ac110f
child 12433 ac48511f8b50
equal deleted inserted replaced
12426:fb6a0b5db69e 12427:116544b5a04c
   187 	    @$(OBJDIR)/$(PROGRAM).lcf $(LDLIBS)
   187 	    @$(OBJDIR)/$(PROGRAM).lcf $(LDLIBS)
   188   ifdef MT
   188   ifdef MT
   189 	$(MT) /manifest $(OBJDIR)/$(PROGRAM).exe.manifest /outputresource:$@;#1
   189 	$(MT) /manifest $(OBJDIR)/$(PROGRAM).exe.manifest /outputresource:$@;#1
   190   endif
   190   endif
   191 	@$(call binary_file_verification,$@)
   191 	@$(call binary_file_verification,$@)
       
   192   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
       
   193     ifeq ($(ZIP_DEBUGINFO_FILES),1)
       
   194 	(set -e ; \
       
   195 	 $(CD) $(OBJDIR) ; \
       
   196 	 $(ZIPEXE) -q $(PROGRAM).diz $(PROGRAM).map $(PROGRAM).pdb ; \
       
   197 	 $(RM) $(PROGRAM).map $(PROGRAM).pdb ; \
       
   198 	)
       
   199     endif
       
   200   endif
   192 else
   201 else
   193   #
   202   #
   194   # Note that we have to link -lthread even when USE_PTHREADS is true.
   203   # Note that we have to link -lthread even when USE_PTHREADS is true.
   195   # This is becuase checkForCorrectLibthread() croaks otherwise.
   204   # This is becuase checkForCorrectLibthread() croaks otherwise.
   196   #
   205   #
   230 	$(FILES_o) $(THREADLIBS) $(LDLIBS)
   239 	$(FILES_o) $(THREADLIBS) $(LDLIBS)
   231   ifeq ($(findstring privileged, $(INFO_PLIST_FILE)), privileged)
   240   ifeq ($(findstring privileged, $(INFO_PLIST_FILE)), privileged)
   232 	-codesign -s openjdk_codesign $@
   241 	-codesign -s openjdk_codesign $@
   233   endif
   242   endif
   234 	@$(call binary_file_verification,$@)
   243 	@$(call binary_file_verification,$@)
       
   244   ifneq ($(PLATFORM), macosx)
       
   245     ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
       
   246       ifeq ($(PROGRAM_SUPPORTS_FULL_DEBUG_SYMBOLS),1)
       
   247 	(set -e ; \
       
   248 	 $(CD) $(@D) ; \
       
   249 	 $(OBJCOPY) --only-keep-debug $(@F) $(@F).debuginfo ; \
       
   250 	 $(OBJCOPY) --add-gnu-debuglink=$(@F).debuginfo $(@F) ; \
       
   251 	)
       
   252         ifeq ($(STRIP_POLICY),all_strip)
       
   253 	  $(STRIP) $@
       
   254         else
       
   255           ifeq ($(STRIP_POLICY),min_strip)
       
   256             ifeq ($(PLATFORM), solaris)
       
   257 	      $(STRIP) -x $@
       
   258             else
       
   259               # assume Linux
       
   260 	      $(STRIP) -g $@
       
   261             endif
       
   262           # implied else here is no stripping at all
       
   263           endif
       
   264         endif
       
   265         ifeq ($(ZIP_DEBUGINFO_FILES),1)
       
   266 	  (set -e ; \
       
   267 	   $(CD) $(@D) ; \
       
   268 	   $(ZIPEXE) -q $(@F).diz $(@F).debuginfo ; \
       
   269 	   $(RM) $(@F).debuginfo ; \
       
   270 	  )
       
   271         endif
       
   272       endif # PROGRAM_SUPPORTS_FULL_DEBUG_SYMBOLS
       
   273     endif # ENABLE_FULL_DEBUG_SYMBOLS
       
   274   endif # PLATFORM-!macosx
   235 endif # PLATFORM
   275 endif # PLATFORM
   236 
   276 
   237 clean:: 
   277 clean:: 
   238 ifeq ($(PLATFORM), windows)
   278 ifeq ($(PLATFORM), windows)
   239 	$(RM) $(OBJDIR)/$(PROGRAM).rc
   279 	$(RM) $(OBJDIR)/$(PROGRAM).rc
   240 	$(RM) $(OBJDIR)/$(PROGRAM).ico
   280 	$(RM) $(OBJDIR)/$(PROGRAM).ico
   241 	$(RM) $(OBJDIR)/$(PROGRAM).lcf
   281 	$(RM) $(OBJDIR)/$(PROGRAM).lcf
   242 	$(RM) $(OBJDIR)/$(PROGRAM).map
   282 	$(RM) $(OBJDIR)/$(PROGRAM).map
       
   283 	$(RM) $(OBJDIR)/$(PROGRAM).pdb
   243 	$(RM) $(OBJDIR)/$(PROGRAM).exp
   284 	$(RM) $(OBJDIR)/$(PROGRAM).exp
   244 	$(RM) $(OBJDIR)/$(PROGRAM).lib
   285 	$(RM) $(OBJDIR)/$(PROGRAM).lib
   245 	$(RM) $(OBJDIR)/$(PROGRAM)$(EXE_SUFFIX)
   286 	$(RM) $(OBJDIR)/$(PROGRAM)$(EXE_SUFFIX)
   246 	$(RM) $(OBJDIR)/$(PROGRAM).ilk
   287 	$(RM) $(OBJDIR)/$(PROGRAM).ilk
   247 	$(RM) *.pdb
   288 	$(RM) *.pdb
   248 endif
   289 else
       
   290 	$(RM) $(OBJDIR)/$(PROGRAM).debuginfo
       
   291 endif
       
   292 	$(RM) $(OBJDIR)/$(PROGRAM).diz
   249 
   293 
   250 
   294 
   251 clobber:: 
   295 clobber:: 
   252 	$(RM) $(ACTUAL_PROGRAM)
   296 	$(RM) $(ACTUAL_PROGRAM)
   253 
   297