/trunk/Examples/modula3/class/swig.tmpl
# · Go Template · 11 lines · 10 code · 1 blank · 0 comment · 0 complexity · eaeeb3303551080cb8ddbc188b794b95 MD5 · raw file
- readonly proc cxx_source (X) is
- local cxxfile = X&".cxx"
- local objfile = X&".o"
- %exec("echo $PWD")
- if stale(objfile,cxxfile)
- exec("cd",path(),"; g++ -I.. -c -o",objfile,cxxfile)
- end
- import_obj(X)
- %unlink_file(path()&SL&objfile)
- end