[hackers] [scc] Revert "Untrack config.mk and provide a default" || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 12 Dec 2016 15:53:03 +0100 (CET)

commit 2fa266a3a26606a1a1bee7328157b5072302d638
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Dec 12 10:31:41 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Dec 12 14:58:30 2016 +0100

    Revert "Untrack config.mk and provide a default"
    
    This reverts commit 8602956fac4b220603a14c18fb9f9adfff9044bb.

diff --git a/Makefile b/Makefile
index 85dc204..a755a69 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -60,7 +60,3 @@ clean:
 
 distclean: clean
         rm -rf bin
- rm config.mk
-
-config.mk:
- cp $_AT_.def $@
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..b1cc627
--- /dev/null
+++ b/config.mk
_AT_@ -0,0 +1,35 @@
+# scc version
+VERSION = 0.1
+
+## Customize below to fit your system
+ARCHS = z80 i386-sysv amd64-sysv qbe
+# default architecure used in nested makefiles
+ARCH = qbe
+DRIVER = posix
+
+# Can be c89 or c99
+STD = c99
+
+# paths
+PREFIX = $(HOME)
+MANPREFIX = $(PREFIX)/share/man
+
+# scc expects to be built by a C99 compiler
+# if your system is not at least POSIX 2004 compatible, adjust CC
+# CC = c99
+# AR = ar
+
+# for Plan9 add -D_SUSV2_SOURCE
+SCC_CFLAGS = -DARCH=\"$(ARCH)\" \
+ $(CSTDINC) \
+ -DPREFIX=\"$(PREFIX)\" \
+ -DNDEBUG \
+ $(CFLAGS)
+
+SCC_LDFLAGS = $(LDFLAGS)
+
+.c.o:
+ $(CC) $(SCC_CFLAGS) -o $_AT_ -c $<
+
+.c:
+ $(CC) $(SCC_CFLAGS) $(SCC_LDFLAGS) -o $_AT_ $<
diff --git a/config.mk.def b/config.mk.def
deleted file mode 100644
index b1cc627..0000000
--- a/config.mk.def
+++ /dev/null
_AT_@ -1,35 +0,0 @@
-# scc version
-VERSION = 0.1
-
-## Customize below to fit your system
-ARCHS = z80 i386-sysv amd64-sysv qbe
-# default architecure used in nested makefiles
-ARCH = qbe
-DRIVER = posix
-
-# Can be c89 or c99
-STD = c99
-
-# paths
-PREFIX = $(HOME)
-MANPREFIX = $(PREFIX)/share/man
-
-# scc expects to be built by a C99 compiler
-# if your system is not at least POSIX 2004 compatible, adjust CC
-# CC = c99
-# AR = ar
-
-# for Plan9 add -D_SUSV2_SOURCE
-SCC_CFLAGS = -DARCH=\"$(ARCH)\" \
- $(CSTDINC) \
- -DPREFIX=\"$(PREFIX)\" \
- -DNDEBUG \
- $(CFLAGS)
-
-SCC_LDFLAGS = $(LDFLAGS)
-
-.c.o:
- $(CC) $(SCC_CFLAGS) -o $_AT_ -c $<
-
-.c:
- $(CC) $(SCC_CFLAGS) $(SCC_LDFLAGS) -o $_AT_ $<
Received on Mon Dec 12 2016 - 15:53:03 CET

This archive was generated by hypermail 2.3.0 : Mon Dec 12 2016 - 16:00:27 CET