Difference between revisions of "ECL/Building libraries"
Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/www/web437/html/mediawiki/includes/MagicWord.php on line 902
From formgames wiki
< ECL
(Created page with "{{ECL/experiments message}} == Linux == TODO == Mac == TODO == Windows == === Usage === * Adapt the path of the batch file 'vcvars64.bat' in 'vsenv' to correspond to th...") |
|||
Line 1: | Line 1: | ||
{{ECL/experiments message}} | {{ECL/experiments message}} | ||
+ | |||
+ | == Documentation == | ||
+ | |||
+ | * [http://ecls.sourceforge.net/new-manual/index.html ECL's reference manual] | ||
+ | ** [http://ecls.sourceforge.net/new-manual/ch32s04.html Building libraries] | ||
== Linux == | == Linux == | ||
Line 59: | Line 64: | ||
</pre> | </pre> | ||
− | build.lisp | + | === Makefile === |
+ | |||
+ | <pre> | ||
+ | # ECL installation dir: | ||
+ | ECL_INSTALLATION_DIR = "C:/Users/dietrich/home/cs/lang/lisp/ecl/64/git/install" | ||
+ | |||
+ | # Compiler options: | ||
+ | # Adapted from output of: ecl-config.bat --cflags | ||
+ | COMPILER_OPTIONS = /EHsc /DGC_DLL /DGC_BUILD /nologo /D_CRT_SECURE_NO_DEPRECATE /Zi /D_DEBUG /MDd /Od -I"$(ECL_INSTALLATION_DIR)" | ||
+ | |||
+ | # Linker options: | ||
+ | # Adapted from output of: ecl-config.bat --libs | ||
+ | LINKER_OPTIONS = /incremental:no /nologo /nodefaultlib:libcmt /nodefaultlib:libcmtd /nodefaultlib:libc /nodefaultlib:libcd /debug /nodefaultlib:msvcrt.lib /LIBPATH:"$(ECL_INSTALLATION_DIR)" ecl.lib | ||
+ | |||
+ | hello.exe: hello.obj hello-lisp.lib | ||
+ | link $(LINKER_OPTIONS) hello.obj hello-lisp.lib | ||
+ | |||
+ | hello.obj: hello.c | ||
+ | cl /c $(COMPILER_OPTIONS) hello.c | ||
+ | |||
+ | hello-lisp.lib: hello-lisp.lisp | ||
+ | ecl -norc -load build.lisp | ||
+ | |||
+ | clean: | ||
+ | del hello.exe hello.obj hello.pdb vc100.pdb | ||
+ | del hello-lisp.data hello-lisp.h hello-lisp.c hello-lisp.obj | ||
+ | del hello-lisp.lib hello-lisp.dll | ||
+ | </pre> | ||
+ | |||
+ | === build.lisp === | ||
<pre lang=Lisp> | <pre lang=Lisp> |