Skip to content

Binghamton-University-CS/Spring2024-CP1-Makefile-Diff-Rule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring2024-CP1-Makefile-Diff-Rule

For CP1, it is recommended to include the files (cp1_songmenu_input.txt, cp1_songmenu_sample) and modifications (diff rule in makefile) into your submission. This is Optional.

1. Place cp1_songmenu_input.txt and cp1_songmenu_sample in your own cp1 directory.

  • Note that cp1_songmenu_sample is the updated executable, available on Brightspace as of Saturday 1pm.

2. Add the diff rule from the makefile to your own makefile.

3. Execute make diff to compare the output of cp1_songmenu_sample and your executable cp1_songmenu using the same input cp1_songmenu_input.txt. If the outputs match, only the following will be displayed:

  chmod +x cp1_songmenu_sample;\
  make clean > /dev/null;\
  make > /dev/null;\
  ./cp1_songmenu_sample < cp1_songmenu_input.txt > cp1_songmenu_sample_out.txt;\
  ./cp1_songmenu < cp1_songmenu_input.txt > cp1_songmenu_out.txt;\
  diff cp1_songmenu_sample_out.txt cp1_songmenu_out.txt;\
  exit 0;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages