Sponsored Content
Full Discussion: Using the Make command
Homework and Emergencies Homework & Coursework Questions Using the Make command Post 302564969 by bakunin on Saturday 15th of October 2011 06:20:23 PM
Old 10-15-2011
Maybe a short explanation will get you up to speed faster.

The "make" utility is intended for repetitive tasks (like compiling/linking). It works rule-based. In its input file there is a collection of such rules laid out.

Rules consist of target files, source files and actions. When a source file is changed (=has a time stamp younger than the target file) the action is carried out. Usually carrying out the action creates the target file. The big advantage of using a make-file instead of a script with all the compiler/linker commands is that "make" will skip all the files which are already up to date and only execute the rules necessary to update the files which aren't. It will also stop if one of the commands carried out will return a non-zero error level (compilers do that when encountering severe errors).

You should now be able to understand the manual and work out your little makefile.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

make command

Dear Guys , Kindly note that i have sun solaries 8 intel machine . i installed apache and it is working fine . i am installing perl5 , MD5 and CGI . but whenever i execute the commands , make , make test and make install i get error message : not found # make make: not found also i... (2 Replies)
Discussion started by: tamemi
2 Replies

2. UNIX for Dummies Questions & Answers

make command

hi i tried to search for the "make" command but to no avail. this is what happens: when i try to type the "make" command, it prompt me the error " csh:make:not found ***error code 1 make:Fatal error: command fail for target 'all' " i have just freshly install solaris 9 on my server.... (8 Replies)
Discussion started by: legato
8 Replies

3. Solaris

C compiler and make command

Hey Guys.... I installed Solaris 10 (10/08) on _X86 platform, I need install any software of load balance. I find the pen-0.18.0-sol10-x86-local software. I cant finish the install process , i dont find the make command, I think this command is associated to the C compiler process. But... (2 Replies)
Discussion started by: aggadtech08
2 Replies

4. Solaris

make command failure

Hi After downloading and compiling new ntp source for Solaris 10 I used the make command on the ntp directory. I received the following output: bash-3.00# make (bk version) >/dev/null 2>&1 && \ cd . && \ x=`bk -R prs -hr+ -nd:I: ChangeSet` && \ y=`cat version... (2 Replies)
Discussion started by: shaife720
2 Replies

5. UNIX for Advanced & Expert Users

problem with make command

hi guys would u clarify me how to use make command , how to write rules of make command and to execute . (1 Reply)
Discussion started by: chinakampalli p
1 Replies

6. Solaris

make command problem

hi, I'was trying to compile a simple game , just for testing the system, but the make command gave me problems, so I read that it was best to have a gnu make package installed so I made pkgrm SUNWgmake and installed the gnu make from sunfreesoftware, the problem is that now when I run make... (9 Replies)
Discussion started by: freeware
9 Replies

7. Solaris

how to make all of this in one command

dears what i need to make is cp -irp file_name filename tar cvf filename.tar filename gzip filename.tar in one commane using exec it that prossible and how can i do that (4 Replies)
Discussion started by: xxmasrawy
4 Replies

8. Homework & Coursework Questions

Utilizing the Make Command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Compile cpp2html.c to produce cpp2html.o. ( Important: the source code in these files is C, not C++, and so... (8 Replies)
Discussion started by: lamentofking
8 Replies

9. Homework & Coursework Questions

Utilizing the Make Command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: ]Compile cpp2html.c to produce cpp2html.o. ( Important: the source code in these files is C, not C++, and so... (1 Reply)
Discussion started by: bgnaranjo1
1 Replies

10. UNIX for Beginners Questions & Answers

How to make df command?

in RHEL 6.10, how can we make the the df -k return the output without wrapping. And wihout using the df -Pk option. After we patched a Linux server from 6.5 to 6.10: The df -k on RHAT 6.10 it wraps the line for ex: 6.10: /dev/mapper/vgapp01-vendor ... (2 Replies)
Discussion started by: mrn6430
2 Replies
SCANFILE(5)						      BSD File Formats Manual						       SCANFILE(5)

NAME
scanfile -- pmkscan specification file DESCRIPTION
scanfile is a file containing specifications that defines which sources are to be scanned and what to generate from the resulting data. SYNTAX
See pmksyntax.5 to have an overview of the basic syntax of scanfiles. COMMANDS
The available commands are the following : GEN_PMKFILE This command specify a zone to scan and generate a pmkfile. Arguments: CFGNAME type is 'quoted', give the name of the template config file to use instead of the default one. DIRECTORY type is 'quoted', define the zone directory to scan. DISCARD type is 'list', list of directories to discard in recursive mode. EXTRATAG type is 'list', list of extra tags to add in template files. RECURSE type is 'bool', enable recursive scanning, default is FALSE. UNIQUE type is 'bool', enable unique resulting file instead of one for each directory. This is actually the default and only one method available (work in progress). For example: GEN_PMKFILE { DIRECTORY = "." RECURSE = TRUE DISCARD = ("samples", "doc", "data", "man") UNIQUE = TRUE } GEN_MAKEFILE This command specify a zone to scan and generate a makefile. Arguments: DIRECTORY type is 'quoted', define the zone directory to scan. DISCARD type is 'list', list of directories to discard in recursive mode. EXTRATAG type is 'list', list of extra tags to add in template files. MKFNAME type is 'quoted', give the name of the template makefile to use instead of the default one. RECURSE type is 'bool', enable recursive scanning, default is FALSE. UNIQUE type is 'bool', enable unique resulting file instead of one for each directory. This is actually the default and only one method available (work in progress). For example: GEN_MAKEFILE { DIRECTORY = "." RECURSE = TRUE DISCARD = ("samples", "doc", "tests") MKFNAME = "Makefile.pmk" UNIQUE = TRUE } GEN_ZONE This command specify a zone to scan and what to generate. Arguments: CFGNAME type is 'quoted', give the name of the template config file to use instead of the default one. DIRECTORY type is 'quoted', define the zone directory to scan. DISCARD type is 'list', list of directories to discard in recursive mode. EXTRATAG type is 'list', list of extra tags to add in template files. PMKFILE type is 'bool', enable generation of a pmkfile MAKEFILE type is 'bool', enable generation of a makefile MKFNAME type is 'quoted', give the name of the template makefile to use instead of the default one. RECURSE type is 'bool', enable recursive scanning, default is FALSE. UNIQUE type is 'bool', enable unique resulting file instead of one for each directory. This is actually the default and only one method available (work in progress). For example: GEN_ZONE(main) { DIRECTORY = "." RECURSE = TRUE DISCARD = ("samples", "doc", "tests") PMKFILE = TRUE MAKEFILE = TRUE MKFNAME = "Makefile.pmk" UNIQUE = TRUE } DEF_LIB This command define library attributes. Arguments: NAME type is 'quoted', give the name of the library. VMAJ type is 'quoted', give the major version of the library. VMIN type is 'quoted', give the minor version of the library. LINKER type is 'quoted', define the relative language of the linker to be used. SOURCES type is 'list', list of the main sources which objects must be linked in the library. HEADERS type is 'list', list of library headers to be installed. For example: DEFINE_LIB { NAME = "testc" VMAJ = "1" VMIN = "3" LINKER = "C" SOURCES = ("libtest.c") HEADERS = ("libtest.h") } SEE ALSO
pmkscan(1), pmkfile(5) BSD
September 15, 2005 BSD
All times are GMT -4. The time now is 08:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy