Been trying to build smth with libcurl. These is my Rakefile:
1
2
3
4
5
6
7
8
9
10
PROG = "x"
files = FileList["**/*.cpp"]
linked_libs_folders = ["/home/john/code/cpp1/curl-7.32.0/installed/lib"].map {|e| "-L#{e}"}.join(" ")
libs_to_link_against = ["curl"].map {|e| "-l#{e}"}.join(" ")
file PROG => files do
puts "Compiling #{PROG}"
sh "g++ #{files} -o #{PROG} #{linked_libs_folders} #{libs_to_link_against}"
end
task :default => [PROG]