Print this page
7612 SGSPROTO lacks structure
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>

@@ -20,11 +20,11 @@
 #
 #
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident "%Z%%M% %I%     %E% SMI"
+# Copyright 2016 RackTop Systems.
 #
 
 pics/%.o:       ../common/%.c
                 $(COMPILE.c) -o $@ $<
                 $(POST_PROCESS_O)

@@ -36,18 +36,19 @@
                 $(RM) $(DYNLIB)
 
 # Special target for native builds (ie. when we need to build a version of ld
 # to build a version of ld :-).
 
-native:         $(SGSPROTO)/$(DYNLIB)
+native:         $(SGSLIBDIR)/$(LIBLINKS)
 
-$(SGSPROTO)/$(DYNLIB): \
-                pics .WAIT $$(PICS)
+$(SGSLIBDIR)/$(DYNLIB): pics .WAIT $$(PICS)
                 $(BUILD.SO)
                 $(POST_PROCESS_SO)
-                -@$(RM) $(SGSPROTO)/$(LIBLINKS)
-                $(SYMLINK) $(DYNLIB) $(SGSPROTO)/$(LIBLINKS)
+
+$(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
+                -@$(RM) $(SGSLIBDIR)/$(LIBLINKS)
+                $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
 
 include         $(SRC)/lib/Makefile.targ
 include         $(SRC)/cmd/sgs/Makefile.targ