Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mkdep(1) [bsd man page]

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
The mkdep utility 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 user has the ability to change the preprocessor and preprocessor options used. For instance, to use gcc as the preprocessor and to ignore system headers, one would use depend: env MKDEP_CPP="gcc -E" MKDEP_CPP_OPTS=-MM mkdep ${CFLAGS} ${SRCS} The options are as follows: -a Append to the output file, so that multiple mkdep's may be run from a single Makefile. -f 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. ENVIRONMENT
CC Specifies the C compiler to use. The specified compiler is expected to have options consistent with the GNU C compiler. MKDEP_CPP Specifies the preprocessor to use. The default is "${CC} -E". MKDEP_CPP_OPTS Specifies the non-CFLAGS options for the preprocessor. The default is "-M". FILES
.depend File containing list of dependencies. SEE ALSO
cc(1), cpp(1), make(1) HISTORY
The mkdep command appeared in 4.3BSD-Tahoe. BSD
June 6, 1993 BSD
Man Page

4 More Discussions You Might Find Interesting

1. Programming

How to use core file?

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)
Discussion started by: lakeat
9 Replies

2. Solaris

Apache config issue

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)
Discussion started by: BrewDudeBob
17 Replies

3. Shell Programming and Scripting

Wrong output when writing to file

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)
Discussion started by: Manoj Rajput
10 Replies

4. UNIX for Advanced & Expert Users

AIX 7.1 gcc 4.8.5 issue

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)
Discussion started by: yahia
17 Replies