micro-utils/build.sh

12 lines
241 B
Bash
Raw Normal View History

2024-07-01 10:23:00 +00:00
#!/bin/sh
2024-07-09 19:33:45 +00:00
CFLAGS="-s -Os -Wextra -Wall -pedantic"
CC="cc"
chmod +x ./libmu/build-libmu.sh
./libmu/build-libmu.sh
2024-07-01 10:23:00 +00:00
2024-07-09 08:02:46 +00:00
for i in $(ls src); do
echo "CC $i"
2024-07-09 19:33:45 +00:00
echo $CFLAGS | xargs $CC -Iconfigs -Ilibmu src/$i -o bin/$(basename $i .c) obj/*.o
2024-07-01 10:23:00 +00:00
done