comparison make/bsd/makefiles/jsig.make @ 7408:892acf0431ef

7153050: remove crufty '_g' support from HotSpot repo makefiles Summary: Phase 1 is removing '_g' support from the Makefiles. Reviewed-by: dcubed, sspitsyn, coleenp, tbell Contributed-by: ron.durbin@oracle.com
author dcubed
date Fri, 14 Dec 2012 10:06:52 -0800
parents f08d439fab8c
children f509b8f4699b
comparison
equal deleted inserted replaced
7396:4a2ed49abd51 7408:892acf0431ef
1 # 1 #
2 # Copyright (c) 2005, 2009, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2005, 2012, 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.
22 # 22 #
23 # 23 #
24 24
25 # Rules to build signal interposition library, used by vm.make 25 # Rules to build signal interposition library, used by vm.make
26 26
27 # libjsig[_g].so: signal interposition library 27 # libjsig.so: signal interposition library
28 JSIG = jsig 28 JSIG = jsig
29 JSIG_G = $(JSIG)$(G_SUFFIX)
30 29
31 ifeq ($(OS_VENDOR), Darwin) 30 ifeq ($(OS_VENDOR), Darwin)
32 LIBJSIG = lib$(JSIG).dylib 31 LIBJSIG = lib$(JSIG).dylib
33 LIBJSIG_G = lib$(JSIG_G).dylib
34 else 32 else
35 LIBJSIG = lib$(JSIG).so 33 LIBJSIG = lib$(JSIG).so
36 LIBJSIG_G = lib$(JSIG_G).so
37 endif 34 endif
38 35
39 JSIGSRCDIR = $(GAMMADIR)/src/os/$(Platform_os_family)/vm 36 JSIGSRCDIR = $(GAMMADIR)/src/os/$(Platform_os_family)/vm
40 37
41 DEST_JSIG = $(JDK_LIBDIR)/$(LIBJSIG) 38 DEST_JSIG = $(JDK_LIBDIR)/$(LIBJSIG)
56 53
57 $(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE) 54 $(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE)
58 @echo Making signal interposition lib... 55 @echo Making signal interposition lib...
59 $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \ 56 $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \
60 $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) -o $@ $< 57 $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) -o $@ $<
61 $(QUIETLY) [ -f $(LIBJSIG_G) ] || { ln -s $@ $(LIBJSIG_G); }
62 58
63 install_jsig: $(LIBJSIG) 59 install_jsig: $(LIBJSIG)
64 @echo "Copying $(LIBJSIG) to $(DEST_JSIG)" 60 @echo "Copying $(LIBJSIG) to $(DEST_JSIG)"
65 $(QUIETLY) cp -f $(LIBJSIG) $(DEST_JSIG) && echo "Done" 61 $(QUIETLY) cp -f $(LIBJSIG) $(DEST_JSIG) && echo "Done"
66 62