I need help with makefile with this assignment  I've mv the .c and .h files and the makefile from the other assignment to this program sort158.a and attempted to create a new makefile for these new programs [sort158a.c, merge.c, mergesort.c, mergesort.h, and wrt.c] Please produce a makefile following my format. any changes or tweaking to sucessfully make I get an error:  make: Circular pack_bits.o gcc -o pack_bits.c gcc: fatal error: no input files compilaion terminated. Make: *** [pack_bits.o] Error 4

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
icon
Related questions
Question

I need help with makefile with this assignment 

I've mv the .c and .h files and the makefile from the other assignment to this program sort158.a and attempted to create a new makefile for these new programs [sort158a.c, merge.c, mergesort.c, mergesort.h, and wrt.c]

Please produce a makefile following my format. any changes or tweaking to sucessfully make

I get an error: 
make: Circular pack_bits.o
gcc -o pack_bits.c
gcc: fatal error: no input files
compilaion terminated.
Make: *** [pack_bits.o] Error 4


Program Name
sort158a
Description
The program will sort any number of integers for lowest to highest.
The program will use the format and words displayed in the Example of Output.
The program will use the following files:
sort158a.c
merge.c
mergesort.c
mergesort.h
Requirements
All the module are files from the class textbook "A Book on C", 6.9 An Example: of
Merge and Merge Sort, Pages 263-269. You should have already entered these modules on
CISWEB as part of assignment A07 and will be in directory a07. If you have not done
assignment A07, do it NOW! Source code file main.c will become sort158a.c.
To begin do the following:
wrt.c
1. Create the p07 directory as required and go to it.
2. Copy all the .c and .h files as well as the makefile from a07
3. Rename main.c to sort158a.c
4. Go into sort158a.e and change the title. Make sure to indicate that this is a modification
of main.c from "A Book on C"
5. Update the makefile to reflect the new filenames.
6. Compile the program using the make command and verify that no errors or warnings
occur. If they do, make the appropriate corrections.
7. Validate that sort158a works properly. If it does not make corrections as needed.
Transcribed Image Text:Program Name sort158a Description The program will sort any number of integers for lowest to highest. The program will use the format and words displayed in the Example of Output. The program will use the following files: sort158a.c merge.c mergesort.c mergesort.h Requirements All the module are files from the class textbook "A Book on C", 6.9 An Example: of Merge and Merge Sort, Pages 263-269. You should have already entered these modules on CISWEB as part of assignment A07 and will be in directory a07. If you have not done assignment A07, do it NOW! Source code file main.c will become sort158a.c. To begin do the following: wrt.c 1. Create the p07 directory as required and go to it. 2. Copy all the .c and .h files as well as the makefile from a07 3. Rename main.c to sort158a.c 4. Go into sort158a.e and change the title. Make sure to indicate that this is a modification of main.c from "A Book on C" 5. Update the makefile to reflect the new filenames. 6. Compile the program using the make command and verify that no errors or warnings occur. If they do, make the appropriate corrections. 7. Validate that sort158a works properly. If it does not make corrections as needed.
#Create object files for bit_print.o pack_bits.c and next day.c
bit_print: bit_print.o pack_bits.o next_day.
gcc -o bit_print.o pack_bits.o next day.o
#Create object file for pack_bits.c
pack_bits.o: pack_bits.o
gcc -o pack_bits.c
#Create object files for next day.c
next day.o: next_day.c
gcc -o next_day.c
#Create object files for bit_print.c
oit print.o: bit print.c
gcc -c bit_print.c
#Delete all of the object files
clean:
rm
Transcribed Image Text:#Create object files for bit_print.o pack_bits.c and next day.c bit_print: bit_print.o pack_bits.o next_day. gcc -o bit_print.o pack_bits.o next day.o #Create object file for pack_bits.c pack_bits.o: pack_bits.o gcc -o pack_bits.c #Create object files for next day.c next day.o: next_day.c gcc -o next_day.c #Create object files for bit_print.c oit print.o: bit print.c gcc -c bit_print.c #Delete all of the object files clean: rm
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Lists
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
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education