How to capture your output in unix - PowerPoint PPT Presentation

1 / 3
About This Presentation
Title:

How to capture your output in unix

Description:

CC -o prog1 file1.o file2.o file3.o. file1.o : file1.cc mydefs. ... CC -c file2.cc. file3.o : file3.cc. CC -c file3.cc. clean : rm file1.o file2.o file3.o make ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 4
Provided by: pyun
Category:
Tags: capture | cc | cleaner | output | unix

less

Transcript and Presenter's Notes

Title: How to capture your output in unix


1
How to capture your output in unix
  • gt script filename
  • .
  • gt exit

2
Make
  • Maintain, update, and regenerate related programs
    and files
  • Make is driven by makefile
  • Contains target files, dependent files, and
    commands
  • target_file dependent_file_list
  • command_sequence
  • .

3
Make
  • Example makefile
  • prog1 file1.o file2.o file3.o
  • CC -o prog1 file1.o file2.o file3.o
  • file1.o file1.cc mydefs.h
  • CC -c file1.cc
  • file2.o file2.cc mydefs.h
  • CC -c file2.cc
  • file3.o file3.cc
  • CC -c file3.cc
  • clean rm file1.o file2.o file3.o
  • gt make
Write a Comment
User Comments (0)
About PowerShow.com