commit 6128429c3fe0cffe749f5095a39cf9102a6cfb0b
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Tue Nov 29 13:41:18 2016 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Tue Nov 29 13:41:18 2016 +0100

    Move ARCHS to config.mk
    
    In this way the coleection of compilers generated can be controlled
    without modifying the Makefile.

diff --git a/Makefile b/Makefile
index d867c22..756bbb4 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,6 @@
 include config.mk
 
 DIRS  = lib cc1 cc2 driver/$(DRIVER)
-ARCHS = z80 i386-sysv amd64-sysv qbe
 
 all:
        for i in $(ARCHS); \
diff --git a/config.mk b/config.mk
index d98c2c3..2e1ac50 100644
--- a/config.mk
+++ b/config.mk
@@ -2,8 +2,10 @@
 VERSION = 0.1
 
 # Customize below to fit your system
-ARCH = qbe
+ARCHS = z80 i386-sysv amd64-sysv qbe
+ARCH = qbe  # default architecure used in nested makefiles
 DRIVER = posix
+
 # Remove inc/sizes.h if STD is changed
 # can be c89 or c99
 STD = c99

Reply via email to