/minimal_linux_commands

I am preparing en system programing exercise with minimal linux/unix command imitations.

Primary LanguageCMakeMIT LicenseMIT

Minimal Unix/Linux Commands

I am preparing en system programming exercise with minimal linux/unix command imitations.

Requirements

  • gcc
  • g++
  • cmake
  • clang-format
  • cppcheck
  • clang(optional)
  • llvm(optional)

Features

  • Cmake based project management
  • clang-format and cppcheck
  • Basic cpack support
  • Very little sources. It is easy to understand

Layout

-- CMakeLists.txt
-- LICENSE                                   (mit licence)
-- README.md                                 (explain general project)
+- documentation                             (documentation)
    | -- documentation.md                    (collection of all project documentations in markdown format)
+- `cmake/`                                  (cmake module to automate management)
    | -- options.cmake                       (compiler and other tools options)
    | -- cpack.cmake                         (packing settings and properties)
    | -- cppcheck.cmake                      (cppcheck properties)
    | -- dependencies.cmake                  (dependencies of project)
    | -- format.cmake                        (formatting properties )
+- `projects/`                               (project folder contains all the projects)
    | -- CMakeLists.txt
    | +- ...                                 (projects and documentation)
+- `build/`                                  (build directory. It will be generated by cmake)

Projects

  1. lsof

Cmake Options

there is nothing for now.

Build

cd /go/to/project/directory
mkdir Build
cd build
cmake -D<Cmake Options> ..         # there is nothing for now.
cmake --build . --target format    # format source code
cmake --build .                    # build it.
cmake --build . --target package   # pack you compiled

Contributors

Mustafa Selçuk Çağlar