add build test using a build directory
This commit is contained in:
1 parent
741f5cfe5e
commit
2cb584312e
7 files changed
+46
-13
No files matched your search
@@ -0,0 +1,5 @@
|
||||
Rscons::Environment.new do |env|
|
||||
env.append('CPPPATH' => Dir['src/**/*/'])
|
||||
env.build_dir('src', 'build')
|
||||
env.Program('build_dir', Dir['src/**/*.c'])
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
#include "two.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
two();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "two.h"
|
||||
|
||||
void two(void)
|
||||
{
|
||||
printf("Hello from two()\n");
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef TWO_H
|
||||
#define TWO_H
|
||||
|
||||
void two(void);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user