Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Write a Bash shell script, makemake.sh, that will create a makefile called Makefile based on all the .cpp files in the current directory. If a .cpp file has any #includes of non-system header files (those with double quotes around them), then those files should be listed in its dependencies. The -Wall -ansi, and -g options will always be used with g++. The shell script takes the name of the executable as its first argument. If no argument is provided, the script should report the error, and print a usage statement. All other parameters are additional options that should be used with every call to g++. The Makefile should end with a "clean:" routine that removes the executable and all object files. (Hints: the -n option of echo inhibits the default newline, and \t and \n work with echo. I used sed and awk to get at the name of the header files within the .cpp files.)[davis@lect1 p1]$ ls appointment.cpp calendar.cpp day.h dayofweek.h Lnk.c private time.h year.h appointment.h day.cpp dayofweek.cpp Ins.c makemake.sh time.cpp year.cpp [davis@lect1 p1]$ makemake.sh Executable name required. usage: makemake.sh executable_name [davis@lect1 p1]$ makemake.sh cal.out [davis@lect1 p1]$ make g++ -ansi -Wall -g -c appointment.cpp g++ -ansi -Wall -g -c calendar.cpp g++ -ansi -Wall -g -c day.cpp g++ -ansi -Wall -g -c dayofweek.cpp g++ -ansi -Wall -g -c time.cpp g++ -ansi -Wall -g -c year.cpp g++ -ansi -Wall -g -o cal.out appointment.o calendar.o day.o dayofweek.o time.o year.o [davis@lect1 p1]$ make clean rm -f cal.out appointment.o calendar.o day.o dayofweek.o time.o year.o [davis@lect1 p1]$ makemake.sh cal.out -O2 -g [davis@lect1 p1]$ cat Makefile cal.out : appointment.o calendar.o day.o dayofweek.o time.o year.o g++ -ansi -Wall -g -o cal.out -O2 -g appointment.o calendar.o day.o dayofweek.o time.o year.o appointment.o : appointment.cpp appointment.h g++ -ansi -Wall -g -c -O2 -g appointment.cpp calendar.o : calendar.cpp year.h g++ -ansi -Wall -g -c -O2 -g calendar.cpp day.o : day.cpp appointment.h day.h dayofweek.h g++ -ansi -Wall -g -c -O2 -g day.cpp dayofweek.o : dayofweek.cpp dayofweek.h g++ -ansi -Wall -g -c -O2 -g dayofweek.cpp time.o : time.cpp time.h g++ -ansi -Wall -g -c -O2 -g time.cpp year.o : year.cpp year.h day.h g++ -ansi -Wall -g -c -O2 -g year.cpp clean : rm -f cal.out appointment.o calendar.o day.o dayofweek.o time.o year.o [davis@lect1 p1]mce_markernbsp;
Why does concurrency lead to programming errors that are difficult to locate? Give as concrete an example as you possibly can?
A computer has a cache, main memory, and a disk. If a referenced word is in the cache, 20 ns are required to access it. If it is in main memory but not in the cache (called cache miss)
Discuss the steps that you use to trouble your DNS issue in the client side and also find NetBIOS information for a remote machine.
describe the three 3 principles of direct manipulation and give examples as to how they are used in video game
Write a C program using the fork() system call that generates this sequence in the child process. The starting number will be provided from the command line. For example
I was recently working on our mainframe UNIX system, and suddenly I received a message that the server required to be rebooted on my screen.
you were hired as a network engineer for a small firm that had just recently implemented a voice-over internet protocol
In a table forma, compare between segmentation and virtual memory organizations in terms of the memory structure, advantages, and disadvantages.
ABC Corporation is a small but growing manufacturing corporation with revenues of approximately $25 million. Until now, the corporation has had a single headquarters and production facility in a Midwestern city,
While there are difficult security concerns in any isolated computing environment, addition of a network in geographically distributed facilities.
what is shared data problem ? explain in briefly ? which is related to embedded system topics ? ltbrgt
Compute the turnaround time for 4 batchh jobs, A through D, which arrived on a computer at almost the same time( say ,at time 0
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd