http://owensd.io/2015/01/15/swift-makefiles-take-2.html
foo.swift
public func foo() -> String { let message = testing() return "Foo - \(message)" }
main.swift
import Foundation public func testing() -> String { return "testing!" } println("Hello, World!") println("testing: \(testing())") println("foo: \(foo())")
コンパイル
http://www.reddit.com/r/swift/comments/29f3ku/question_can_you_use_makefiles_to_compile_swift/
xrcun -sdk macosx swiftc foo.swift main.swift ./main