19 lines
No EOL
284 B
Bash
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
|
|
} |