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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Nov 24 20:36:10 CET 2009


Revision: 7409
          http://gar.svn.sourceforge.net/gar/?rev=7409&view=rev
Author:   wahwah
Date:     2009-11-24 19:36:10 +0000 (Tue, 24 Nov 2009)

Log Message:
-----------
gccgo: stubs written, build fails on 'gcc: gengtype-lex.c: No such file or directory'

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

Modified: csw/mgar/pkg/gccgo/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gccgo/trunk/Makefile	2009-11-24 19:18:52 UTC (rev 7408)
+++ csw/mgar/pkg/gccgo/trunk/Makefile	2009-11-24 19:36:10 UTC (rev 7409)
@@ -145,8 +145,8 @@
 ## this variable an empty value. The procedure works for configure, build,
 ## install and test steps.
 CONFIGURE_SCRIPTS = gccgo
-BUILD_SCRIPTS = gccgo
-INSTALL_SCRIPTS = gccgo
+## BUILD_SCRIPTS = gccgo # using the default target
+## INSTALL_SCRIPTS = gccgo # using the default target
 TEST_SCRIPTS = gccgo
 ##
 ## Compilation settings
@@ -159,7 +159,8 @@
 ## BUILD_ARGS =
 ##
 ## Arguments passed to the ./configure script.
-CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS  = $(DIRPATHS)
+CONFIGURE_ARGS += --enable-languages=c,c++,go
 ##
 ## BUILD64 =
 ## CONFIGURE_ENV =
@@ -173,9 +174,29 @@
 ## OPT_FLAGS_GCC = -O2 -pipe
 ##
 ## The compiler to use. Defaults to SOS11, can be also: SOS12, GCC3, GCC4.
-## GARCOMPILER = SOS11
-##
+
+# Compiling gcc with gcc
+GARCOMPILER = GNU
+
+WORKSRC = $(WORKDIR)/objdir
+
 include gar/category.mk
 
 post-extract-modulated:
-	(cd $(WORKDIR) && svn checkout svn://gcc.gnu.org/svn/gcc/branches/gccgo gccgo)
+	(cd $(WORKDIR) && \
+		if [ -d gccgo ]; then \
+			(cd gccgo && svn up); \
+		else \
+			svn checkout svn://gcc.gnu.org/svn/gcc/branches/gccgo gccgo; \
+		fi)
+	mkdir -p $(WORKSRC)
+	@$(MAKECOOKIE)
+
+configure-gccgo:
+	(cd $(WORKSRC) && $(CONFIGURE_ENV) ../gccgo/configure $(CONFIGURE_ARGS))
+	@$(MAKECOOKIE)
+
+test-gccgo:
+	echo "Tests?"
+	false
+	@$(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