Skip to content

Add .inc files to list of header files #952

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

Merged
merged 1 commit into from
Feb 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/reference/build_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ The build tools include every source file found in the project unless it is in a

Mbed OS build tools determine the type of source file found based on the file's extension. The following table lists all files used in a build:

| Extension | File type | Used by |
|---------------------|-------------------|--------------------------------|
| `.a`, `.ar` | Archive | Toolchain's linker |
| `.c` | C source | Toolchain's C compiler |
| `.cc`, `.cpp` | C++ source | Toolchain's C++ compiler |
| `.h`, `.hpp`, `.hh` | C/C++ header | Toolchain's C and C++ compiler |
| `.icf` | IAR linker file | IAR's linker |
| `.ld` | GCC linker script | GCC's linker (`ld`) |
| `.o` | Object | Toolchain's linker |
| `.s`, `.S` | Assembly | Toolchain's assembler |
| `.sct` | ARM scatter file | ARM's linker (`armlink`) |
| Extension | File type | Used by |
|-----------------------------|-------------------|--------------------------------|
| `.a`, `.ar` | Archive | Toolchain's linker |
| `.c` | C source | Toolchain's C compiler |
| `.cc`, `.cpp` | C++ source | Toolchain's C++ compiler |
| `.h`, `.hpp`, `.hh`, `.inc` | C/C++ header | Toolchain's C and C++ compiler |
| `.icf` | IAR linker file | IAR's linker |
| `.ld` | GCC linker script | GCC's linker (`ld`) |
| `.o` | Object | Toolchain's linker |
| `.s`, `.S` | Assembly | Toolchain's assembler |
| `.sct` | ARM scatter file | ARM's linker (`armlink`) |


### Label directories
Expand Down