source: git/kernel/Add-Kernel-Subpackage.md

spielwiese
Last change on this file was 75f460, checked in by Hans Schoenemann <hannes@…>, 9 years ago
format
  • Property mode set to 100644
File size: 1.0 KB
Line 
1Addition of a new sub-package within `/kernel/` {#adding_kernel_package}
2===============================================
3
4   1. create a new directory (e.g. `/kernel/somepackage`) in `/kernel/` for your sub-package (`somepackage`)
5   2. place all the necessary **sources** and **headers** there (`/kernel/somepackage`)
6   3. `git add` all new **sources** and **headers**
7   4. copy `/kernel/sample/Makefile.am` and adapt it:
8     * replace *sample* with your sub-package name (e.g. `_libsample_` with `_libsomepackage_`)
9     * update `libsomepackage_la_SOURCES` list
10     * update `libsomepackage_la_include_HEADERS` and `libsomepackage_la_includedir`
11     * `git add` this new `Makefile.am`
12   5. change `/configure.ac` and `/kernel/Makefile.am` similar to [SAMPLE](https://github.com/Singular/Sources/commit/3074ad70db777694b401b1cd3980f74301b0339d) (NOTE: use your sub-package name *somepackage* instead of *sample*)
13   6. commit all the changes and test it on TC, e.g. as indicated by our [Development Model](\ref development_model_page)
14
15
Note: See TracBrowser for help on using the repository browser.