]> rtime.felk.cvut.cz Git - omk.git/blob - tests/libraries.files
test: Allow testing only a single type of rules
[omk.git] / tests / libraries.files
1 cat > 'funcb.c' <<EOF
2 #include <mylib.h>
3
4 int funcb(int b)
5 {
6         return b*2;
7 }
8 EOF
9 cat > 'test.c' <<EOF
10 #include <stdio.h>
11 #include <mynumber.h>
12 int main()
13 {
14         printf("NUMBER is %d\n", NUMBER);
15         return 0;
16 }
17 EOF
18 cat > 'Makefile.omk' <<EOF
19 lib_LIBRARIES = mylib
20 mylib_SOURCES = funca.c funcb.c
21 include_HEADERS = mylib.h
22 EOF
23 cat > 'funca.c' <<EOF
24 #include <mylib.h>
25
26 int funca(int a)
27 {
28         return a+1;
29 }
30 EOF
31 cat > 'mylib.h' <<EOF
32 #ifndef MYLIB_H
33 #define MYLIB_H
34
35 int funca(int a);
36 int funcb(int b);
37
38
39 #endif
40 EOF