18 lines
262 B
Plaintext
18 lines
262 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
# Variables
|
||
|
bindir=/after/bin
|
||
|
|
||
|
# Compile
|
||
|
tcc -c getopt1.c
|
||
|
tcc -c getopt.c
|
||
|
tcc -c regex.c
|
||
|
tcc -c utils.c
|
||
|
tcc -c -Dalloca alloca.c
|
||
|
tcc -c -DHAVE_BCOPY sed.c
|
||
|
|
||
|
# Link
|
||
|
tcc -static -o ${bindir}/sed alloca.o getopt1.o getopt.o regex.o sed.o utils.o
|