citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 878b7600a23863aa218ed23849ee1c99a7dff75d
parent 372501bd5b6a48c43dbc352b3136559128f09996
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Fri, 11 Mar 2016 02:21:25 -0700

add scv_wrap + Makefile

- scv_wrap sets up some environment and then executes the given command

Diffstat:
Abin/Makefile | 1+
Abin/scv_wrap | 16++++++++++++++++
Ainclude/Makefile | 4++++
3 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/bin/Makefile b/bin/Makefile @@ -0,0 +1 @@ +.include <bsd.prog.mk> diff --git a/bin/scv_wrap b/bin/scv_wrap @@ -0,0 +1,16 @@ +#!/bin/sh + +scv_root=/home/kyle/src/scv + +if ! test -d $scv_root/compilers; then + echo error: compilers/ directory does not exist + exit 1 +fi + +export SCV_PATH="$scv_root/compilers" +export PATH="$SCV_PATH:$PATH" + +export CFLAGS="-pthread -I$scv_root/include" +export LDLIBS="-L$scv_root/lib -lruntime -pthread" + +exec $@ diff --git a/include/Makefile b/include/Makefile @@ -0,0 +1,4 @@ +all: +clean: + +.include <bsd.own.mk>