This lab illustrates the GNU toolkit. For the most part, we will work it together in class. Everything will be done from the command line.
Activities for compiling
- Use mkdir to create directory call csci235.
- Protect csci235 to allow access only by you.
- Connect to csci235.
- Download clab_make.tar.gz.
- Use tar to extract the directory stored in clab_make.tar.gz.
- List the downloaded files with ls.
- Spend some time in a guided tour of the .c and .h files.
- Compile blastoff.c . Wait for instructions!
- Compile countDown.c . Wait for help!
- List your directory.
- Link your compiled modules. Wait for instructions!
- Take a look at Makefile. Look at the GNU make manual.
- Take a guided tour of Makefile. Pay attention to the tabs!
- Type make clean.
- List your directory.
- Type make.
- Type make.
- Type make.
- Type touch countDown.c .
- Type ls -l.
- Type make. Wow!
- Type touch countDown.h .
- Type make.
- Type gdb blastoff. Look at the gdb User Manual or Quick Guide to Gdb or this capture.