diff --git a/test/build/dir/test1.o b/test/build/dir/test1.o new file mode 100644 index 0000000..3a483a2 Binary files /dev/null and b/test/build/dir/test1.o differ diff --git a/test/build/dir/test2.o b/test/build/dir/test2.o new file mode 100644 index 0000000..e64fb33 Binary files /dev/null and b/test/build/dir/test2.o differ diff --git a/test/build/main.o b/test/build/main.o new file mode 100644 index 0000000..b706fd1 Binary files /dev/null and b/test/build/main.o differ diff --git a/test/c_config.toml b/test/c_config.toml new file mode 100644 index 0000000..8f9ac59 --- /dev/null +++ b/test/c_config.toml @@ -0,0 +1,8 @@ +[general] +target = "main" +main = "main.c" + +[build] +build_dir = "build" +cc = "gcc" +cflags = "-Wall" diff --git a/test/dir/test1.c b/test/dir/test1.c new file mode 100644 index 0000000..23b7a47 --- /dev/null +++ b/test/dir/test1.c @@ -0,0 +1,8 @@ +#include "test1.h" +#include "test2.h" +#include + +void test1() { + printf("Hola desde test1\n"); + test2(); +} \ No newline at end of file diff --git a/test/dir/test1.h b/test/dir/test1.h new file mode 100644 index 0000000..503c897 --- /dev/null +++ b/test/dir/test1.h @@ -0,0 +1,6 @@ +#ifndef TEST1_HEADER +#define TEST1_HEADER + +void test1(); + +#endif diff --git a/test/dir/test2.c b/test/dir/test2.c new file mode 100644 index 0000000..9f6eedf --- /dev/null +++ b/test/dir/test2.c @@ -0,0 +1,6 @@ +#include "test2.h" +#include + +void test2() { + printf("Hola desde test2\n"); +} \ No newline at end of file diff --git a/test/dir/test2.h b/test/dir/test2.h new file mode 100644 index 0000000..f2ba837 --- /dev/null +++ b/test/dir/test2.h @@ -0,0 +1,6 @@ +#ifndef TEST2_HEADER +#define TEST2_HEADER + +void test2(); + +#endif diff --git a/test/main b/test/main new file mode 100755 index 0000000..3e362a4 Binary files /dev/null and b/test/main differ diff --git a/test/main.c b/test/main.c new file mode 100644 index 0000000..3dd2cb6 --- /dev/null +++ b/test/main.c @@ -0,0 +1,8 @@ +#include + +#include "test1.h" + +int main() { + printf("Hola desde main\n"); + test1(); +} \ No newline at end of file