blob: 935a8d7104551104e08158e5eaec781b1e2606c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
desc 'Build'
task :build do
system('mkdir build')
system('gcc -o build/test_gcc_i386 -m32 -framework CoreServices *.c *.cp libudis86/*.c')
system('gcc -o build/test_gcc_x86_64 -m64 -framework CoreServices *.c *.cp libudis86/*.c')
end
desc 'Test'
task :test do
system('build/test_gcc_i386')
system('build/test_gcc_x86_64')
end
desc 'Clean up'
task :clean do
system('rm -rf build')
end
task :default => [:build, :test]
|