Source

dropbox / dropbox.setup

; These two instructions will produce statically and dynamically linkable
; object files "dropbox-lolevel.o" and "dropbox-lolevel.so" respectively.
(compile -s -O2 -d1 dropbox-lolevel.scm -j dropbox-lolevel)
(compile -s dropbox-lolevel.import.scm -O2 -d0)
(compile -c -O2 -d1 dropbox-lolevel.scm -unit dropbox-lolevel -j dropbox-lolevel)
(install-extension
  ; Name of your extension:
  'dropbox-lolevel
  ; Files to install for your extension:
  '("dropbox-lolevel.o" "dropbox-lolevel.so" "dropbox-lolevel.import.so")
  ; Assoc list with properties for your extension:
  '((version "0.1") ;; version number should be a string
    (static "dropbox-lolevel.o"))) ;; for static linking

(compile -s -O2 -d1 dropbox.scm -j dropbox)
(compile -s dropbox.import.scm -O2 -d0)
(compile -c -O2 -d1 dropbox.scm -unit dropbox -j dropbox)
(install-extension
  ; Name of your extension:
  'dropbox
  ; Files to install for your extension:
  '("dropbox.o" "dropbox.so" "dropbox.import.so")
  ; Assoc list with properties for your extension:
  '((version "0.1") ;; version number should be a string
    (static "dropbox.o")))