-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fobos local variables #20
Comments
Hello Stefano! |
Hi Tomas, happy to read you again. You are right, this is not documented yet! Indeed, I have planned to refactor FoBiS and its documentation, but I have not yet found the time. However, the meaning of this feature (that is implemented!) is very simple: you can define variables and use them into different "modes" and or "options". For a practical example see this https://github.com/szaghi/BeFoR64/blob/master/fobos The $CFLAGS_SHARED = -cpp -c -assume realloc_lhs -fpic
$CFLAGS_STATIC = -cpp -c -assume realloc_lhs
$LFLAGS_SHARED = -shared
$DEBUG = -O0 -debug all -check all -warn all -traceback -std03
$OPTIMIZE = -O2 are local variables that can be used elsewhere inside the fobos file. For example see the A variable can be used into the option definitions as you aspect, for example: cflags = $CFLAGS_SHARED $OPTIMIZE The local (global?) variable are defined and used by the Until I will have the time to refactor the code, I hope this can help you. |
Thank you! I'm sure this will be useful for me :) |
@Myself: remember to document this feature! |
Hello Stefano, |
:-) Good job! I am doing it now... |
Dear Tomas, these are for you:
I am sorry for my bad English... I hope they are clear enough. Let me know how you will use them... :-) See you soon. |
Add feature: allow definition of local variables inside fobos file that can be shared between different modes/options
The text was updated successfully, but these errors were encountered: