scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit eff46e86a3d7b4106d97977bd974c7266ecc9c6c
parent 3ec2ca552af17c8ebaa16219d05462cbfc421c38
Author: FRIGN <dev@frign.de>
Date:   Sun, 19 Jul 2015 20:04:08 +0200

Update config.mk reflecting necessities and remove shell-scripts

Diffstat:
Dbuild.sh | 4----
Mconfig.mk | 24+++++++++++++-----------
Denv.sh | 23-----------------------
3 files changed, 13 insertions(+), 38 deletions(-)

diff --git a/build.sh b/build.sh @@ -1,4 +0,0 @@ -#!/bin/sh - -. ./env.sh -make "$@" diff --git a/config.mk b/config.mk @@ -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 @@ -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