[hackers] [scc] Update config.mk reflecting necessities and remove shell-scripts || FRIGN

From: <git_AT_suckless.org>
Date: Sun, 19 Jul 2015 20:05:01 +0200 (CEST)

commit eff46e86a3d7b4106d97977bd974c7266ecc9c6c
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Sun Jul 19 20:04:08 2015 +0200
Commit: FRIGN <dev_AT_frign.de>
CommitDate: Sun Jul 19 20:04:08 2015 +0200

    Update config.mk reflecting necessities and remove shell-scripts

diff --git a/build.sh b/build.sh
deleted file mode 100755
index 42e3ef8..0000000
--- a/build.sh
+++ /dev/null
_AT_@ -1,4 +0,0 @@
-#!/bin/sh
-
-. ./env.sh
-make "$_AT_"
diff --git a/config.mk b/config.mk
index 4512ca0..7e339c4 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -1,15 +1,17 @@
-# Customize to fit your system
+# scc version
+VERSION = 0.1
 
-# paths
-PREFIX = /usr/local/
-MANPREFIX = ${PREFIX}/share/man
+# Customize below to fit your system
 
-VERSION = 0.1
+# paths
+PREFIX = /usr/local/
+MANPREFIX = ${PREFIX}/share/man
 
-# Flags
-CFLAGS = -std=c99
-#LDFLAGS =
+CC = cc
+LD = $(CC)
+AR = ar
 
-# Tools
-CC = cc
-#AR =
+# for Plan9 add -D_SUSV2_SOURCE -DNBOOL
+CPPFLAGS = -D_DEFAULT_SOURCE
+CFLAGS = -std=c99
+LDFLAGS = -s
diff --git a/env.sh b/env.sh
deleted file mode 100755
index fa599ea..0000000
--- a/env.sh
+++ /dev/null
_AT_@ -1,23 +0,0 @@
-#!/bin/sh
-
-case "$(uname)" in
-Plan9)
- CFLAGS="-D_SUSV2_SOURCE -DNBOOL"
- export CFLAGS
- ;;
-*)
- case "$CC" in
- c99)
- ;;
- ''|gcc)
- CC=gcc
- CFLAGS=-std=c99
- export CFLAGS CC
- ;;
- *)
- echo You need a c99 compiler for this program 2>&1
- exit
- ;;
- esac
- ;;
-esac
Received on Sun Jul 19 2015 - 20:05:01 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 19 2015 - 20:12:10 CEST