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 "..."

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question
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 "..."
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Graphical User Interface
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT