]> rtime.felk.cvut.cz Git - omk.git/blob - tests/programs/includes/includes.files
Convert functions.sh to make the old scripts runable with wvtest
[omk.git] / tests / programs / includes / includes.files
1 cat > 'test.c' <<EOF
2 #include <stdio.h>
3 #include <mynumber.h>
4 int main()
5 {
6         printf("NUMBER is %d\n", NUMBER);
7         return 0;
8 }
9 EOF
10 cat > 'Makefile.omk' <<EOF
11 bin_PROGRAMS = test
12
13 test_SOURCES = test.c
14
15 INCLUDES = -I$(SOURCES_DIR)/inc
16 EOF
17 mkdir 'inc'
18 echo '#define NUMBER 456' > 'inc/mynumber.h'