diff options
| author | Tyge Løvset <[email protected]> | 2022-03-04 13:18:35 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-03-04 13:18:35 +0100 |
| commit | 3c379fbfb2b7301cd5c4f5371a9f0b96a1369b60 (patch) | |
| tree | 46975c8374107e44fd9605894ce5b02d981ba538 /examples/make.sh | |
| parent | c4301c6b492bb962a943335bf8df4920b2a699cf (diff) | |
| download | STC-modified-3c379fbfb2b7301cd5c4f5371a9f0b96a1369b60.tar.gz STC-modified-3c379fbfb2b7301cd5c4f5371a9f0b96a1369b60.zip | |
Updated printf formatting to portable code. This was also to use http://winlibs.com gcc+clang with ucrt runtime-libs without warnings.
Diffstat (limited to 'examples/make.sh')
| -rw-r--r-- | examples/make.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/examples/make.sh b/examples/make.sh index ccce036f..3f2247b6 100644 --- a/examples/make.sh +++ b/examples/make.sh @@ -1,11 +1,14 @@ #!/bin/bash -cc='gcc -O2 -Wall -std=c99 -pedantic' +cc='gcc -s -O2 -Wall -std=c99 -pedantic' +#cc='clang -s -O2 -Wall -std=c99 -pedantic' #cc='clang' #cc='clang -c -DSTC_HEADER' -#cc='cl -nologo' +#cc='cl -O2 -nologo -W2 -MD' #cc='cl -nologo -TP' #cc='cl -nologo -std:c11' libs='' +#oflag='/Fe:' +oflag='-o ' run=0 if [ -z "$OS" ]; then libs='-lm -pthread' @@ -24,8 +27,8 @@ fi if [ $run = 0 ] ; then for i in *.c ; do - echo $cc -I../include $i $libs - $cc -I../include $i $libs + echo $cc -I../include $i $libs $oflag$(basename $i .c).exe + $cc -I../include $i $libs $oflag$(basename $i .c).exe done else for i in *.c ; do @@ -37,4 +40,4 @@ else done fi -rm -f a.out *.o *.obj *.exe +rm -f a.out *.o *.obj # *.exe |
