scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit d23cd64c95e731617ed7906bbe033d6b3ab43bfa
parent 4caf226e95bfddbbe1b76b54bfb915e8ed95e3c5
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 20 Sep 2019 19:30:43 +0200

Move STD to rules.mk

This allows to execute some nested Makefiles without
including env.sh.

Diffstat:
MMakefile | 1-
Mscripts/rules.mk | 11++++++-----
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,7 +3,6 @@ PROJECTDIR = . include $(PROJECTDIR)/scripts/rules.mk -STD = c99 PREFIX = $(PWD)/$(PROJECTDIR)/root MANPREFIX = $(PREFIX)/share/man DIRS = src include/scc/scc tests diff --git a/scripts/rules.mk b/scripts/rules.mk @@ -17,11 +17,12 @@ ENVIRON = $(SCRIPTDIR)/env.sh INCLUDE = -I$(INCDIR)/scc -CC = $(CROSS_COMPILE)$(COMP) -AS = $(CROSS_COMPILE)$(ASM) -LD = $(CROSS_COMPILE)$(LINKER) -RL = $(CROSS_COMPILE)$(RANLIB) -AR = $(CROSS_COMPILE)$(ARCHIVE) +STD = c99 +CC = $(CROSS_COMPILE)$(COMP) +AS = $(CROSS_COMPILE)$(ASM) +LD = $(CROSS_COMPILE)$(LINKER) +RL = $(CROSS_COMPILE)$(RANLIB) +AR = $(CROSS_COMPILE)$(ARCHIVE) SCC_CFLAGS =\ $(MORECFLAGS)\