+ checkfatal
+ success "$2 built"
+}
+
+compile_x(){
+ if ! [ -x "$(command -v $target_compiler)" ]; then
+ warning "Compiler $target_compiler is not installed. Skipping item"
+ return 0
+ fi
+
+ include="-I. -I$vg_root/dep -I$vg_root/src"
+ libs="-L./ -L$vg_root/dep/glfw -L$vg_root/dep/steam"
+
+ steam_part=""
+ if [ "$opt_steam" != "" ]; then
+ steam_part="$opt_steam $target_libs_steam"
+ fi
+
+ warnings="-Wall -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable"
+ sources="$1 $vg_root/dep/glad/glad.c $target_miniaudio"
+ output="-o $2$target_ext"
+
+ cmd="$target_compiler -D_REENTRANT $target_standard $target_opts $target_platform_include
+ $warnings
+ $include
+ $libs
+ $sources
+ $output
+ $target_libs $steam_part
+ -Wl,-rpath=./"
+
+ logit " $cmd\n"
+ $cmd
+
+ checkfatal