fixed build system
This commit is contained in:
parent
5ee1be7e93
commit
c90681ba2a
21
build.sh
21
build.sh
|
@ -1,8 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
PROJECT_DIR=$(pwd)
|
if [ -z $PROJECT_DIR ]; then
|
||||||
CFLAGS="-pedantic -s -Os -flto -Werror -Wall -Wextra -I$PROJECT_DIR -I$PROJECT_DIR/include/libmu -lm"
|
PROJECT_DIR=$(pwd)
|
||||||
projects="console-tools coreutils sysutils sysutils-linux findutils networking miscutils shell loginutils procps"
|
fi
|
||||||
CC=cc
|
|
||||||
|
if [ -z $CFLAGS ]; then
|
||||||
|
CFLAGS="-pedantic -s -Os -flto -Werror -Wall -Wextra -I$PROJECT_DIR -I$PROJECT_DIR/include/libmu -lm"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z $CC ]; then
|
||||||
|
CC=cc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z $projects ]; then
|
||||||
|
projects="console-tools coreutils sysutils sysutils-linux findutils networking miscutils shell loginutils procps"
|
||||||
|
fi
|
||||||
|
|
||||||
#Compile
|
#Compile
|
||||||
for project in $projects; do
|
for project in $projects; do
|
||||||
|
|
Loading…
Reference in New Issue