This repository has been archived on 2021-08-25. You can view files and clone it, but cannot push or open issues or pull requests.
shellbuild/example/sbrc
2021-08-25 19:43:37 +03:00

19 lines
No EOL
284 B
Bash

#!/bin/sh
CC="gcc"
CFLAGS=""
_message() {
eval $(depends message.c message.h)
$CC ${CFLAGS} -c message.c
}
_hello() {
eval $(depends hello.c _message)
$CC ${CFLAGS} -c hello.c
}
__default() {
eval $(depends _hello)
$CC hello.o message.o ${CFLAGS} -o main
}