4 sdcc|rtems|sysless-keil51|sysless-keil16x)
10 WVSTART "Shared library"
14 int funca(int a) {return a+1;}
18 int funcb(int b) {return funca(b*2);}
29 printf("result is %d\n", funcb(1));
33 cat > 'Makefile.omk' <<EOF
34 shared_LIBRARIES = a b
39 include_HEADERS = mylib.h
49 sysless) # Sysless rules do not support this (yet)
53 WVSTART "Dynamic library with specific CFLAGS"
56 #error SYM value is wrong
59 cat > 'Makefile.omk' <<EOF # OMK manual includes this file - do not modify it
60 shared_LIBRARIES = mylib
62 mylib_CFLAGS = -DSYM=123