Skip to content

duaneking/c_lib_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

c_lib_example

Simple C lib example for a friend, possibly you.

Build Layout

In general when writting a cli tool, you should make the core of the app a library used by the main application anyway.

With this in mind, the main binary is just a simple validation test that the sample bubble sorting happens as expected.

Here is the build flow:

stateDiagram-v2
    [*] --> Start

    Start --> Build
    
    state Build {
        environment --> make

        [*] --> make

        state make {
            [*] --> ci

            state ci {
                [*] --> clean
                
                state clean {
                    [*] --> [*]: "clean build artifacts"
                }

                clean --> build

                state build {
                    [*] --> [*]: "main.o lib.o --> main.c lib.c -o main"
                }

                build --> test

                state test {
                    [*] --> [*]: "./main"
                }

                test --> [*]
            }

            ci --> [*]
        }

        make --> [*]
    }

    Build --> End

    End --> [*]

About

Simple C lib example for a friend, possibly you.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published