mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-05 23:22:25 +00:00
updated README.md with info how to build rpm from provided spec file.
This commit is contained in:
parent
bef25cd7a7
commit
1c7d4dc066
1 changed files with 34 additions and 8 deletions
42
README.md
42
README.md
|
|
@ -1,11 +1,26 @@
|
|||
voc
|
||||
===
|
||||
|
||||
vishap oberon compiler
|
||||
======================
|
||||
|
||||
How to install - see COMPILE file.
|
||||
How to install
|
||||
==============
|
||||
|
||||
How to use:
|
||||
just cd into source directory and type
|
||||
|
||||
>make -f makefile.linux.gcc.x86_64
|
||||
|
||||
if you are on linux x86_64 system and you want voc to use gcc as backend.
|
||||
|
||||
otherwise use corresponding makefile.
|
||||
|
||||
then type
|
||||
|
||||
>sudo make install
|
||||
|
||||
- or see COMPILE file.
|
||||
|
||||
How to use
|
||||
==========
|
||||
|
||||
Type voc and it'll show you help.
|
||||
|
||||
|
|
@ -15,7 +30,7 @@ voc -m will link the module dynamically.
|
|||
If you have more than one module, and you want them to be compiled into elf filethen:
|
||||
Let's assume we have module M0 which imports M1;
|
||||
|
||||
voc -l M1.Mod -s M0.Mod -M
|
||||
>voc -l M1.Mod -s M0.Mod -M
|
||||
|
||||
Here -l is a global option.
|
||||
Module M1 will be compiled with -s option, i. e. sym file will be generated.
|
||||
|
|
@ -24,12 +39,23 @@ Module M0 will be compiled and linked statically.
|
|||
|
||||
In case you have modules in different directories, like "ui", "logic", "math", then you need to export MODULES environment variable like this:
|
||||
|
||||
export MODULES=".:ui:logic:math"
|
||||
>export MODULES=".:ui:logic:math"
|
||||
|
||||
and after call voc
|
||||
|
||||
voc -s ui0.Mod
|
||||
>voc -s ui0.Mod
|
||||
|
||||
Otherwise you can use full path:
|
||||
|
||||
voc -s ui/ui0.Mod
|
||||
>voc -s ui/ui0.Mod
|
||||
|
||||
build rpm
|
||||
=========
|
||||
|
||||
if you'd like to build an rpm installer, then
|
||||
|
||||
* compress sources as voc-1.0.src.tar.bz2
|
||||
* put them to /usr/src/redhat/SOURCES/ (or other similar location)
|
||||
* run "rpmbuild -ba voc.spec
|
||||
|
||||
this should create voc rpm installers.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue