scc

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

commit 2ab8d22238ac1ea32123311d195d0eb0b7016c20
parent bad1e0359187402e8c928618c513b654ad1797f8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Oct 2018 09:12:43 +0100

[tests/libc] Avoid problem with parameter order

cc.sh doesn't understand very well parameters when options
and files are mixed. For this reason this Makefile adds
a specific rule to set the correct order.

Diffstat:
Mtests/libc/execute/Makefile | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/tests/libc/execute/Makefile b/tests/libc/execute/Makefile @@ -4,6 +4,9 @@ ROOT = ../../../root CFLAGS = CC = SCCPREFIX=$(ROOT) ./cc.sh +.c: + $(CC) $(CFLAGS) -o $@ $< + all: tests tests: