Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | make conf script more portable |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
2bf816277f769c97d6266fca1df125f2 |
User & Date: | lexi 2019-06-08 19:28:50 |
Context
2020-02-04
| ||
11:26 | fix link to tenki Leaf check-in: 93d5e8a7ec user: lexi tags: trunk | |
2019-06-08
| ||
19:28 | make conf script more portable check-in: 2bf816277f user: lexi tags: trunk | |
2019-05-20
| ||
11:40 | initial commit check-in: cc61552b23 user: lexi tags: trunk | |
Changes
Changes to conf.sh.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
#!/usr/bin/bash cc="clang" ocamlc="ocamlopt.opt" cflags="-std=c++14 -Iext/soil/ -Iext/fontstash/ -fno-rtti -fno-exceptions -g" ldflags="-cclib \"-lglfw -lGL\"" prod=$(basename $(pwd)) echo "all: tools link" csrc="" for x in csrc/*.cc; do bx=$(basename $x).o $cc $cflags -MM $x -MT $bx echo " $cc -c $cflags $x -o build/$bx" csrc="$csrc $bx" done echo "link: $csrc soil fontstash" echo " ar -rcs build/libvisnov.a build/*.o" echo " $ocamlc -c build/libvisnov.a mlsrc/*.ml $ldflags" echo " mv mlsrc/*.cmx mlsrc/*.cmi build/" echo " cp mlsrc/*.ml build/" echo "soil:" echo " cd build && clang -c ../ext/soil/*.c" echo "fontstash:" echo " cd build && clang -c ../ext/fontstash/*.c" echo "tools:" echo " cd build && clang -std=c++14 ../tool/visnarc.cc -o visnarc" echo "clean:" echo " rm build/*" |
| | > | < > > | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#!/usr/bin/bash cc=${CC:-cc} ocamlc=${OCAMLC:-ocamlopt.opt} cflags="$VISNOV_CFLAGS -std=c++14 -Iext/soil/ -Iext/fontstash/ -fno-rtti -fno-exceptions" mlflags="$VISNOV_MLFLAGS -cclib \"$VISNOV_LINK -lglfw -lGL\"" prod=$(basename $(pwd)) echo "all: tools link" csrc="" for x in csrc/*.cc; do bx=$(basename $x).o $cc $cflags -MM $x -MT $bx echo " $cc -c $cflags $x -o build/$bx" csrc="$csrc $bx" done echo "link: $csrc soil fontstash" echo " ar -rcs build/libvisnov.a build/*.o" echo " $ocamlc -c build/libvisnov.a mlsrc/*.ml $mlflags" echo " mv mlsrc/*.cmx mlsrc/*.cmi build/" echo " cp mlsrc/*.ml build/" echo "soil:" echo " cd build && clang -c ../ext/soil/*.c" echo "fontstash:" echo " cd build && clang -c ../ext/fontstash/*.c" echo "tools:" echo " cd build && clang -std=c++14 ../tool/visnarc.cc -o visnarc" echo "clean:" echo " rm build/*" |