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
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
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
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
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
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
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
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
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
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
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
config(8) System Manager's Manual config(8)
NAME
config - Builds system configuration files
SYNOPSIS
/sys/conf/config [-k] [-p] [-q] system_name
FLAGS
Creates a define variable 'KDEBUG' that can be used to conditionally compile source code for kernel debugging. Configure the system for
profiling. You must have sources to use this flag. Concatenates and displays all the system configuration files, including any configura-
tion files described in the /sys/conf/NAME.list file.
DESCRIPTION
The doconfig command calls the config command to build a set of system configuration files from a file that describes the sort of system
that is being configured. The config command also takes as input another file that tells it what files are needed to generate a system.
This other file can be augmented by a configuration-specific set of files that name alternate files for a specific machine.
Normally, you should run the doconfig program and not the config command. If you need to issue the config command, be sure to change your
directory to the /sys/conf directory. As an argument to the config command, specify the name of a system configuration file containing
device specifications, configuration options and other system parameters for that specific system configuration. The config command places
all its output files in the directory
The output of config consists of a number of files; each machine type has its own specific set of files. All machine types have a makefile
which is used by make during the system build. Typically, there are also a set of header files which contain definitions of the number of
various devices that will be compiled into the system, and a set of swap configuration files contain definitions for the disk areas to be
used for swapping, the root file system, argument processing, and system dumps.
After running config, you run make depend in the directory where the new makefile was created.
If any other error messages are produced by config, the problems in the configuration file should be corrected and config should be run
again. Attempts to compile a system that had configuration errors are likely to be unsuccessful.
NOTES
The line numbers reported in error messages are usually off by one.
FILES
List of common files used to build the system List of files specific to NAME, where NAME is the value specified for the ident option in the
system configuration file Machine-independent portion of the makefile template used for building kernels from binaries Machine-independent
portion of the makefile template used for building kernels from sources Machine-dependent portion of the makefile template List of machine-
specific files Machine-specific name to major device mapping file
RELATED INFORMATION
Commands: make(1), doconfig(8)
System Administration delim off
config(8)