Skip to content

finlaysr/CS210-Simple-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

104 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS210 Simple Shell

Build

AUTHORS

  • Callum Charteris
  • Duncun Amundrud
  • Finlay Robb
  • Luke Wallace
  • Muhammad Saad Khan

How to Use

The make command is used:

  • make - builds the project, putting the final binary in ./bin
  • make run - builds and runs the project
  • make format - formats all the c files in the project (requires clang-format)
  • make clean - removes any build artifacts, use when you want to rebuild

Additional options:

  • release=1 - use release profile without debug info
  • sanitize=1 - use address sanitizer to detect memory unsafety

Examples:

  • make run sanitize=1 - run with address sanitizer
  • make format && make release=1 - format project files and build project in release profile

File Structure

.
├── bin
│   └── the final binary
├── build
│   └── where intermediate .o and .d files are
├── docs
│   └── any useful documentation
├── include
│   └── where all the .h files are
├── src
│   └── where all the .c files are
├── Makefile
└── README.md

Note: ./bin and ./build are generated automatically upon make

About

A simple OS shell in C for a Unix-type system

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •