MKDEP(1) General Commands Manual MKDEP(1)NAME
mkdep - construct Makefile dependency list
SYNOPSIS
mkdep [ -f makefile ] [ -p ] flags file ...
DESCRIPTION
Mkdep takes a set of flags for the C compiler and a list of C source files as arguments and constructs a set of include file dependencies.
It attaches this dependency list to the end of the file ``Makefile''. An example of its use in a makefile might be:
CFLAGS= -O -I../include -I.
SRCS= file1.c file2.c
depend:
mkdep ${CFLAGS} ${SRCS}
where the macro SRCS is the list of C source files and the macro
CFLAGS is the list of flags for the C compiler. The -f option
provides mkdep with a name other than ``Makefile'' to be edited.
If the -p option is provided, mkdep produces dependencies
of the form ``program: program.c'' so that subsequent makes will
produce program directly from its C module rather than using an
intermediate .o module. This is useful in directories that
contain many programs, each of whose source is contained in a single
C module.
SEE ALSO cc(1), make(1)4.2 Berkeley Distribution June 4, 1987 MKDEP(1)
Check Out this Related Man Page
MKDEP(1) BSD General Commands Manual MKDEP(1)NAME
mkdep -- construct Makefile dependency list
SYNOPSIS
mkdep [-ap] [-f file] [flags] file [...]
DESCRIPTION
mkdep takes a set of flags for the C compiler and a list of C source files as arguments and constructs a set of include file dependencies
which are written into the file ``.depend''. An example of its use in a Makefile might be:
CFLAGS= -O -I../include
SRCS= file1.c file2.c
depend:
mkdep ${CFLAGS} ${SRCS}
where the macro SRCS is the list of C source files and the macro CFLAGS is the list of flags for the C compiler.
The options are as follows:
-a Append to the output file, so that multiple mkdep's may be run from a single Makefile.
-f file
Write the include file dependencies to file, instead of the default ``.depend''.
-p Cause mkdep to produce dependencies of the form:
program: program.c
so that subsequent makes will produce program directly from its C module rather than using an intermediate .o module. This is useful
for programs whose source is contained in a single module.
SEE ALSO cc(1), cpp(1), make(1)FILES
.depend file containing list of dependencies
HISTORY
The mkdep command appeared in 4.3BSD-Tahoe.
4.2 Berkeley Distribution June 6, 1993 4.2 Berkeley Distribution
Hi experts,
A good day to you all.
With debug option, I compiled a big program called OpenFOAM (Written mainly in c++) on IRIX.
after it is finished, I got a SEGV when I executed it.
I noticed that the core file is quite a big block (800M)!
However, I can get very little information... (9 Replies)
I want to build a little website on a Sun Blade 100 running Solaris 10.
I just went out to apache.org and downloaded Unix Source: httpd-2.2.8.tar.gz
After unpacking the tarball, I CD'd into the subdirectory and ran the configure utility. Of course, it crapped out. I see that it is... (17 Replies)
Hello,
I am having problem while redirecting output to a file where as on console output is proper.
for dir in */; do printf "%s, " "$dir"; ls -m "$dir"; echo; done > output.txt
Output of above command is coming in single line but when i am redirecting output to a file, single line i... (10 Replies)
hey guys ,
after migrate our AIX server from 6.1 to 7.1 , we insalled c compilator with rpm files
Server:root:/ > rpm -qa | grep gcc
libgcc-4.8.5-1
gcc-cpp-4.8.5-1
gcc-4.8.5-1
gcc-c++-4.8.5-1
but whene we proceed to compile a c programm we have this error
exec(): 0509-036... (17 Replies)