1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh -e script_dir=$(dirname "$0") cd "$script_dir" CC=${CC:-gcc} opts="-O2 -g0 -DNDEBUG -Wall -Wextra -Wshadow" libs="$(pkg-config --libs gl)" includes="$(pkg-config --cflags gl)" $CC main.c -o ngxc $opts $libs $includes