fixed build system

This commit is contained in:
Your Name 2023-12-20 20:07:34 +03:00
parent 5ee1be7e93
commit c90681ba2a
1 changed files with 16 additions and 5 deletions

View File

@ -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