Skip to content
Snippets Groups Projects
Commit 0912f841 authored by rodolakis's avatar rodolakis
Browse files

5.2 explanation

parent bfcda14b
No related branches found
No related tags found
1 merge request!2Fanny whatdoesitmean
......@@ -101,6 +101,29 @@ index 9692f5a..14855f8 100644
```
</details>
<details>
<summary>what does that mean?</summary>
```
ifdef MOTOR_VMC
$(DBD_NAME)_DBD += vmcSupport.dbd
$(PROD_NAME)_LIBS := vmc $($(PROD_NAME)_LIBS)
endif
```
- `ifdef MOTOR_VMC`: This conditional statement checks if the variable `MOTOR_VMC` is defined. If `MOTOR_VMC` is defined, the code block within the `ifdef` statement is executed.
- `$(DBD_NAME)_DBD += vmcSupport.dbd`:
- This expression appends `vmcSupport.dbd` to the end of the `$(DBD_NAME)_DBD` variable. It adds the value `vmcSupport.dbd` as a new entry at the end of the list stored in `$(DBD_NAME)_DBD`.
- `$(DBD_NAME)_DBD` is a variable storing the names of DBD files to be included in the build
- `$(PROD_NAME)_LIBS := vmc $($(PROD_NAME)_LIBS)`:
- This expression assigns the value vmc as the first element in the `$(PROD_NAME)_LIBS` variable, and it appends the existing value of `$(PROD_NAME)_LIBS` after `vmc`.
- `$(PROD_NAME)_LIBS` is a variable that holds the names of libraries the IOC application depends on.
</details>
### 5.3 Rebuild the IOC (Attempt #1)
If the following build succeeds, proceed to [step 5.6](5-Add-virtual-motors.md#56-confirm-the-libvmc-is-included-in-the-iocs-binary).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment