sled

Једноставни уређивач текста
git clone https://git.sr.ht/~strahinja/sled
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување d0715e9fdb7ac6cb70d826d6a8f01fb1798f69e8
родитељ febfd7c1a55638031fe139c816be715fe4f343df
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Thu, 28 Sep 2023 14:23:29 +0200

Get rid of SLED_ prefix for build variables

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
MINSTALL | 6+++---
Mbuild-command.sh | 2+-
Mconfig.redo | 4++--
Mdefault.o.do | 2+-
Msled.do | 4++--
измењених датотека: 5, додавања: 9(+), брисања: 9(-)

diff --git a/INSTALL b/INSTALL @@ -25,16 +25,16 @@ Persistent build configuration file ----------------------------------- The file config.redo will be sourced when building targets which also accept -configuration through environment variables. For example, SLED_CC and PREFIX +configuration through environment variables. For example, CC and PREFIX are specified in config.redo. OpenBSD ------- -Replace gcc in SLED_CC with cc and add -D_BSD_SOURCE, eg: +Replace gcc in CC with cc and add -D_BSD_SOURCE, eg: - # SLED_CC='cc -g -Wall -D_BSD_SOURCE' ./do install + # CC='cc -g -Wall -D_BSD_SOURCE' ./do install Applying patches diff --git a/build-command.sh b/build-command.sh @@ -1 +1 @@ -SLED_CC='gcc -ggdb -fsanitize=address -fno-omit-frame-pointer -lrt -static-libgcc' redo rebuild -j10 +CC='gcc -ggdb -fsanitize=address -fno-omit-frame-pointer -lrt -static-libgcc' redo rebuild -j10 diff --git a/config.redo b/config.redo @@ -1,4 +1,4 @@ PREFIX=${PREFIX:-/usr/local} -SLED_CC=${SLED_CC:-gcc -g -Wall -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L \ +CC=${CC:-gcc -g -Wall -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L \ -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE} -SLED_STRIP=${SLED_STRIP:-:} +STRIP=${STRIP:-:} diff --git a/default.o.do b/default.o.do @@ -2,4 +2,4 @@ sed -n '/^#include "/s/^#include "\([^"]*\)"/\1/p' ${2%.o}.c | \ xargs redo-ifchange redo-ifchange $2.c . ./config.redo -${SLED_CC} -c $2.c -o $3 +${CC} -c $2.c -o $3 diff --git a/sled.do b/sled.do @@ -1,4 +1,4 @@ redo-ifchange sled.o draw.o util.o . ./config.redo -${SLED_CC} -o $3 sled.o draw.o util.o >/dev/null -${SLED_STRIP} $3 +${CC} -o $3 sled.o draw.o util.o >/dev/null +${STRIP} $3