/trunk/Examples/modula3/class/swig.tmpl

# · Go Template · 11 lines · 10 code · 1 blank · 0 comment · 0 complexity · eaeeb3303551080cb8ddbc188b794b95 MD5 · raw file

  1. readonly proc cxx_source (X) is
  2. local cxxfile = X&".cxx"
  3. local objfile = X&".o"
  4. %exec("echo $PWD")
  5. if stale(objfile,cxxfile)
  6. exec("cd",path(),"; g++ -I.. -c -o",objfile,cxxfile)
  7. end
  8. import_obj(X)
  9. %unlink_file(path()&SL&objfile)
  10. end