shithub: scc

Download patch

ref: 3ec2ca552af17c8ebaa16219d05462cbfc421c38
parent: 235b5368a2c5ad4d58fb02dc9efa0a8d59fb3830
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Jul 19 15:51:04 EDT 2015

Include config.mk in all the Makefiles

And CC and CFLAGS values are discomment to (FRIGN, I want you be me friend :P)

--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# scc - Sucless C Compiler
+# scc - Suckless C Compiler
 
 include config.mk
 
--- a/cc1/Makefile
+++ b/cc1/Makefile
@@ -1,3 +1,5 @@
+include ../config.mk
+
 OBJS = types.o decl.o lex.o error.o symbol.o main.o expr.o \
 	code.o stmt.o cpp.o
 
--- a/cc2/Makefile
+++ b/cc2/Makefile
@@ -1,3 +1,4 @@
+include ../config.mk
 
 OBJS = main.o parser.o cgen.o code.o optm.o peep.o
 
--- a/config.mk
+++ b/config.mk
@@ -7,9 +7,9 @@
 VERSION     = 0.1
 
 # Flags
-#CFLAGS      = -std=c99
+CFLAGS      = -std=c99
 #LDFLAGS     =
 
 # Tools
-#CC          = cc
+CC          = cc
 #AR          =