ref: 268eaf6cf283a9aa48a03d4a5c190ed6f7b39585
parent: 4eef2ebea51d526b52bd074247d821bf80c12ee5
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Nov 29 08:41:18 EST 2016
Move ARCHS to config.mk In this way the coleection of compilers generated can be controlled without modifying the Makefile.
--- 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); \
--- 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