Complete the following makefile# Makefile Template: # Fill this file in with the specified rules. You may use any features # of Makefiles that you wish so long as the desired targtes produce # the desired outcomes. # RULE 1 # target: all # dependencies: list_main # commands: none # NOTE: this sets up the default target as named "all" which will # build list_main # RULE 2 # target: list_main # depenencies: list_main.o list_funcs.o # commands: use gcc to create list_main program using the two .o files # RULE 3 # target: list_main.o # dependencies: list_main.c list.h # commands: use gcc to compile only (-c option) the C file to produce # a .o file # RULE 4 # target: list_funcs.o # dependencies: list_funcs.c list.h # commands: use gcc to compile only (-c option) the C file to produce # a .o file # RULE 5 # target: demo-list # dependencies: list_main # commands: cat list_cmds.txt | ./list_main -echo # NOTE: this allows demonstratin of the output of the program # RULE 6 # target: clean # dependencies: none # commands: use 'rm -f' to delete all .o files and the list_main program # RULE 7 # target: "pat-a-cake" # dependencies: none # commands: # Use 4 "echo" command to print the lines # Pat-a-cake, pat-a-cake, bakers man. # Bake me a cake as fast as you canl # Roll it, pat it, and mark it with a B # Put it in the oven for Baby and me. # Prefix all lines with @ so that the commands are not printed, # only their output is shown; start each line as @echo "..."
Complete the following makefile# Makefile Template: # Fill this file in with the specified rules. You may use any features # of Makefiles that you wish so long as the desired targtes produce # the desired outcomes. # RULE 1 # target: all # dependencies: list_main # commands: none # NOTE: this sets up the default target as named "all" which will # build list_main # RULE 2 # target: list_main # depenencies: list_main.o list_funcs.o # commands: use gcc to create list_main program using the two .o files # RULE 3 # target: list_main.o # dependencies: list_main.c list.h # commands: use gcc to compile only (-c option) the C file to produce # a .o file # RULE 4 # target: list_funcs.o # dependencies: list_funcs.c list.h # commands: use gcc to compile only (-c option) the C file to produce # a .o file # RULE 5 # target: demo-list # dependencies: list_main # commands: cat list_cmds.txt | ./list_main -echo # NOTE: this allows demonstratin of the output of the program # RULE 6 # target: clean # dependencies: none # commands: use 'rm -f' to delete all .o files and the list_main program # RULE 7 # target: "pat-a-cake" # dependencies: none # commands: # Use 4 "echo" command to print the lines # Pat-a-cake, pat-a-cake, bakers man. # Bake me a cake as fast as you canl # Roll it, pat it, and mark it with a B # Put it in the oven for Baby and me. # Prefix all lines with @ so that the commands are not printed, # only their output is shown; start each line as @echo "..."
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Complete the following makefile
# Makefile Template:
# Makefile Template:
# Fill this file in with the specified rules. You may use any features
# of Makefiles that you wish so long as the desired targtes produce
# the desired outcomes.
# RULE 1
# target: all
# dependencies: list_main
# commands: none
# NOTE: this sets up the default target as named "all" which will
# build list_main
# RULE 2
# target: list_main
# depenencies: list_main.o list_funcs.o
# commands: use gcc to create list_main program using the two .o files
# RULE 3
# target: list_main.o
# dependencies: list_main.c list.h
# commands: use gcc to compile only (-c option) the C file to produce
# a .o file
# RULE 4
# target: list_funcs.o
# dependencies: list_funcs.c list.h
# commands: use gcc to compile only (-c option) the C file to produce
# a .o file
# RULE 5
# target: demo-list
# dependencies: list_main
# commands: cat list_cmds.txt | ./list_main -echo
# NOTE: this allows demonstratin of the output of the program
# RULE 6
# target: clean
# dependencies: none
# commands: use 'rm -f' to delete all .o files and the list_main program
# RULE 7
# target: "pat-a-cake"
# dependencies: none
# commands:
# Use 4 "echo" command to print the lines
# Pat-a-cake, pat-a-cake, bakers man.
# Bake me a cake as fast as you canl
# Roll it, pat it, and mark it with a B
# Put it in the oven for Baby and me.
# Prefix all lines with @ so that the commands are not printed,
# only their output is shown; start each line as @echo "..."
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education