saur0x / cxxmake

A standard project structure for C and C++ with a perfect Makefile.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A standard project structure for C and C++ with a perfect Makefile.

TODO

  • Add lib<package_name>.so instead of lib.so for libraries.

make <OPTION>

  • clean
  • expand
  • run
  • test
  • static
  • dynamic -f PIC -shared

Project Structure

bin

  • Structure
    • bin/main
    • bin/test
    • include/*
    • src/main.c
    • test/test.c

lib

  • lib doesn't have src/main.c or any module in src with main function.
  • Structure
    • bin/test
    • include/*
    • lib/lib.a
    • lib/lib.so
    • test/test.c

References

About

A standard project structure for C and C++ with a perfect Makefile.


Languages

Language:Makefile 82.2%Language:C++ 17.8%