begin program "ocaml-top"
      files = [ "tools.ml"
                "cfg.ml"
                "ocamlBuffer.ml"
                "completion.ml"
                "top.ml"
                "topUi.ml"
                "gui.ml"
                "main.ml" ]
      requires = [ "threads" "unix" "str"
                   "lablgtk2" "lablgtk2.sourceview2"
                   "ocp-indent.lib"
                   "ocp-index.lib" ]
      link = [ "-thread" ]
      comp = [ "-thread" ]
      if system = "win32" then
        files += [ "sigint_win.c" ]
      else
        files += [ "sigint_unix.c" ]
end

begin library "threads"
     installed = true
     dirname = [ "%{OCAMLLIB}%/threads" ]
     has_byte = false
     requires = [ "unix" ]
     byte += [ "-custom" ]
end
