[hackers] [scc] Include config.mk in all the Makefiles || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sun, 19 Jul 2015 19:53:12 +0200 (CEST)

commit 3ec2ca552af17c8ebaa16219d05462cbfc421c38
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sun Jul 19 19:51:04 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sun Jul 19 19:52:35 2015 +0200

    Include config.mk in all the Makefiles
    
    And CC and CFLAGS values are discomment to (FRIGN, I want you be me friend :P)

diff --git a/Makefile b/Makefile
index 0e055e9..f1faf79 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -1,4 +1,4 @@
-# scc - Sucless C Compiler
+# scc - Suckless C Compiler
 
 include config.mk
 
diff --git a/cc1/Makefile b/cc1/Makefile
index 47e9c09..b49fab3 100644
--- a/cc1/Makefile
+++ b/cc1/Makefile
_AT_@ -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
 
diff --git a/cc2/Makefile b/cc2/Makefile
index 1324c82..c406c4a 100644
--- a/cc2/Makefile
+++ b/cc2/Makefile
_AT_@ -1,3 +1,4 @@
+include ../config.mk
 
 OBJS = main.o parser.o cgen.o code.o optm.o peep.o
 
diff --git a/config.mk b/config.mk
index 2d77561..4512ca0 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -7,9 +7,9 @@ MANPREFIX = ${PREFIX}/share/man
 VERSION = 0.1
 
 # Flags
-#CFLAGS = -std=c99
+CFLAGS = -std=c99
 #LDFLAGS =
 
 # Tools
-#CC = cc
+CC = cc
 #AR =
Received on Sun Jul 19 2015 - 19:53:12 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 19 2015 - 20:00:13 CEST