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