[csw-devel] SF.net SVN: gar:[6655] csw/mgar/pkg/nicstat/trunk/Makefile

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Fri Oct 2 11:18:41 CEST 2009


Revision: 6655
          http://gar.svn.sourceforge.net/gar/?rev=6655&view=rev
Author:   bonivart
Date:     2009-10-02 09:18:41 +0000 (Fri, 02 Oct 2009)

Log Message:
-----------
nicstat: some fixes

Modified Paths:
--------------
    csw/mgar/pkg/nicstat/trunk/Makefile

Modified: csw/mgar/pkg/nicstat/trunk/Makefile
===================================================================
--- csw/mgar/pkg/nicstat/trunk/Makefile	2009-10-02 08:42:18 UTC (rev 6654)
+++ csw/mgar/pkg/nicstat/trunk/Makefile	2009-10-02 09:18:41 UTC (rev 6655)
@@ -26,17 +26,24 @@
 
 WORKSRC = $(WORKDIR)
 
+ifeq ($(shell uname -p), sparc)
+  MYARCH = -xarch=v8
+else
+  MYARCH =
+endif
+
 include gar/category.mk
 
 build-custom:
 	@echo " ==> Build $(GARNAME) (custom)"
 	@( cd $(WORKSRC) ; \
-	  cp Makefile.Solaris Makefile ; \
+	  sed "s/CFLAGS =/CFLAGS = $(MYARCH) /" Makefile.Solaris > Makefile ; \
 	  gmake )
 	@$(MAKECOOKIE)
 
 install-custom:
 	@echo " ==> Install $(GARNAME) (custom)"
-	( cd $(WORKSRC) ; \
+	@( cd $(WORKSRC) ; \
 	  gmake BASEDIR=$(DESTDIR)/opt/csw install )
+	@cp $(WORKSRC)/enicstat $(DESTDIR)$(bindir)
 	@$(MAKECOOKIE)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list