5 WVSTART "Static library"
8 int funca(int a) {return a+1;}
12 int funcb(int b) {return b*2;}
18 cat > 'Makefile.omk' <<EOF # OMK manual includes this file - do not modify it
20 mylib_SOURCES = funca.c funcb.c
21 include_HEADERS = mylib.h
25 cat > app/main.c <<EOF
33 cat > app/Makefile.omk <<EOF # OMK manual includes this file - do not modify it
34 bin_PROGRAMS = libtest
35 libtest_SOURCES = main.c
43 linux) WVPASS test -f _compiled/lib/libmylib.a ;;
49 sysless) # Sysless rules do not support this (yet)
53 WVSTART "Static library with specific CFLAGS"
56 #error SYM value is wrong
59 cat > 'Makefile.omk' <<EOF # OMK manual includes this file - do not modify it
62 mylib_CFLAGS = -DSYM=123