bydgoszcz

simple, fast and efficient programming language
git clone git://git.kocotian.pl/bydgoszczscript.git
Log | Files | Refs | README | LICENSE

commit 4ea5b3b0b563595b6841eb531da45e36249aeac0
parent 37c7af72dbe1b3d56579c5bf993912d811d88ba1
Author: kocotian <kocotian@kocotian.pl>
Date:   Thu, 27 May 2021 17:39:46 +0200

Installation, wrapper

Diffstat:
MMakefile | 8++++++++
Aby-wrapper | 3+++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -15,11 +15,19 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +PREFIX = /usr/local +CC = gcc + all: by by: by.c util.c str.c compile.c token.c errwarn.c ${CC} -std=c99 -pedantic -Wall -Wextra -Wconversion -Iinclude -o $@ $^ +install: by + mkdir -p ${DESTDIR}${PREFIX}/bin + install -Dm755 by ${DESTDIR}${PREFIX}/bin/by-core + install -Dm755 by-wrapper ${DESTDIR}${PREFIX}/bin/by + clean: rm -f by diff --git a/by-wrapper b/by-wrapper @@ -0,0 +1,3 @@ +#!/bin/sh +CCODE="$(by-core $@)" || exit 1 +echo "$CCODE" | gcc -std=c99 -pedantic -x c -