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