03-30-2005, 10:52 PM
I know fb is not c (well actually Vic said once fb is c in a clown costume) but how about adding #pragma.
This way we could set the compiler settings inside the main bas file (if we wish to).
Just keep the same compiler switches:
If we would get #PRAGMA there would not be a need for an external make file, because the main bas file would drive everything.
This way we could set the compiler settings inside the main bas file (if we wish to).
Just keep the same compiler switches:
- #PRAGMA -inputlist <name> 'xxx.a = library, xxx.o = object, xxx.bas = source, xxx.rc = resource script, xxx.res = compiled resource
#PRAGMA -a <name> 'Add an object file to linker's list
#PRAGMA -arch <type> 'Set target architecture (def: 486)
#PRAGMA -b <name> 'Add a source file to compilation
#PRAGMA -c 'Compile only, do not link
#PRAGMA -d <name=val> 'Add a preprocessor's define
#PRAGMA -dll 'Same as -dylib
#PRAGMA -dylib 'Create a DLL, including the import library
#PRAGMA -e 'Add error checking
#PRAGMA -entry <name> 'Set a non-standard entry point, see -m
#PRAGMA -ex 'Add error checking with RESUME support
#PRAGMA -g 'Add debug info (testing)
#PRAGMA -i <name> 'Add a path to search for include files
#PRAGMA -l <name> 'Add a library file to linker's list
#PRAGMA -lib 'Create a static library
#PRAGMA -m <name> 'Main file w/o ext, the entry point (def: 1st .bas on list)
#PRAGMA -nodeflibs 'Do not include the default libraries
#PRAGMA -noerrline 'Do not show source line where error occured
#PRAGMA -o <name> 'Set output name (in the same number as source files)
#PRAGMA -p <name> 'Add a path to search for libraries
#PRAGMA -r 'Do not delete the asm file(s)
#PRAGMA -s <name> 'Set subsystem (gui, console)
#PRAGMA -t <value> 'Set stack size in kbytes (default: 1M)
#PRAGMA -v 'Be verbose
#PRAGMA -version 'Show compiler version
#PRAGMA -x <name> 'Set executable/library name
#PRAGMA -w <value> 'Set min warning level
If we would get #PRAGMA there would not be a need for an external make file, because the main bas file would drive everything.