You could copy the whole global /lib folder to a local folder for just that project, and then replace the rs232.lib with the one you've written. Then your global /lib is intact (and unused for this project) and you don't have to rename anything. Be sure to point to the new copy of the /lib folder by setting the user defined LIB.DIR to point to your new local /lib folder. Here's some snippets from a document I just wrote (also contains instructions for our internally generated source.)
Rabbit Source Code Structure
The following directory structures, project settings, and file contents are used to support building KA Rabbit programs.
Dynamic C Libraries
1. The libraries and include files are initially installed when Dynamic C 10.72 is installed (explained above in "Installing Rabbit Development Tools"), in the following directories:
2. Copy the above directories to the following locations, as most everything in C:\KairosRabbit\ is suitable for placing under source control:
3. Copy any changed files approved for use by Kairos Autonomi to these same corresponding directories, replacing any corresponding files from the initial installation.
All changes to these files will take place in the C:\KairosRabbit\DynamicC_10.72_Libs\ directory, which is under source control. The "Dynamic C Project and Files Setup" below steps explain how to accommodate this relocation.
Kairos Autonomi Rabbit Source Code
Below we specify "Troy" as an arbitrary identifier for the main working directory for a developer. Initially this identifier was used to denote the code that provided the system baseline. Substitute a desired meaningful directory name as appropriate.
These programs and libraries are the source code for Kairos Autonomi Rabbit projects:
Changes to these files take place in the C:\KairosRabbit\Troy directory, which is under source control.
Dynamic C Project and Files Setup
To set up the Dynamic C IDE to locate the Dynamic C libraries and include files, as well as the Kairos Autonomi source code, the following settings must be made:
1. Using a text editor, create the following User Defined Lib Directory File: C:\KairosRabbit\Troy\RCM6600W_LIB.DIR Set its contents to the following:
2. From the desktop, double-click on the icon Dynamic C 10.72.
3. Open the source project (in this example C:\KairosRabbit\Troy\SafetyDirect.dcp): File / Project / Open…
4. Set Project Options as follows: Options / Project Options
• Compiler/Advanced/User Defined BIOS File:
• Compiler/Advanced/User Defined Lib Directory File:
• Project Options/Defines:
o MAX_FIRMWARE_BINSIZE=0x80000, DISABLE_WIFI, ROOT_SIZE_4K=0x5U
• Project Options/Targetless/Board Selection:
o 162MHz, RCM6600W, 1M+32K RAM, 1M serial program flash
• Project Options/Targetless/Board Selection/CPU:
o Rabbit 6000 revision FZD0AA064AA
• Project Options/Include Path:
5. Save Project Options as follows: Project Options / OK
6. Save Project settings as follows: File / Project / Save