home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
makdep4d.zip
/
MAKDPDOS.ZIP
/
MAKEDEP.DOC
< prev
Wrap
Text File
|
1994-09-28
|
4KB
|
133 lines
MAKEDEP
-------
Dependecy generator for MAKE.
This code is copyright (C) 1994, Sulyok Péter. It is placed in the public
domain for non-commercial use, without fee. Commercial redistribution of
this source code not permitted.
1. WHAT IS MAKEDEP ?
--------------------
MAKEDEP is a short program than generates dependencies of C or assembly
files. This program is usefull when you work with a MAKE which cannot
check dependencies.
2. COMMAND LINE SYNTAX
----------------------
The command line syntax of MAKEDEP is the following :
MAKEDEP [-option ...] objectfile [outputfile]
where the 'objectfile' is a MAKE target, and you need the list of
dependecies of this file.
3. HOW MAKEDEP WORKS ?
----------------------
- It takes the 'objectfile' and try to find the original source
file (C or assembly) in the source directories.
- It reads the source file and searches include file in it.
- Try to find include files (and its include files) in include
directories.
- It write list of dependencies to 'outputfile' (or standard output
if 'outputfile' is not given).
4. OPTIONS
----------
The list of available options :
-a Append to outputfile
Append list of dependencies to the end of output file.
-sPATH[;PATH...] Source file search directories
The list of directories where MAKEDEP try to find
source file.
-iPATH[;PATH...] Include file search directories
The list of directories where MAKEDEP try to find
include files.
-n Ignore include file if not found
This is usefull when you don't want that the system
include files (STDIO.H etc.) appears in the list of
dependecies.
-d Do not write objectfile
Do not write name of object file to the list (see examples).
-b Write depencies base name
Write base name of dependecies (in default MAKEDEP writes
the full name of these files).
-u Use upper case
-l Use lower case
-h,-? Info text
@respfile Response file for options
You can use response files for long command lines.
5. EXAPLES
----------
If you have the next simple C program (MY.C)
#include <stdio.h>
#include "my.h"
void main(void)
{
printf("Hello.");
}
than
makedep -ic:\bc\include my.obj
will generate the next list to the screen
my.obj: my.c c:\bc\include\stdio.h my.h c:\bc\include\_defs.h c:\bc\include\_nfile.h c:\bc\include\_null.h
or
makedep -b -ic:\bc\include my.obj
will generate
my.obj: my.c stdio.h my.h _defs.h _nfile.h _null.h
If you use the -n option and don't give any include directory than
makedep -n my.obj
will generate
my.obj: my.c my.h
If you use the -d option than
makedep -d -n my.obj
will write only dependencies
my.c my.h
If you use
makedep -d -n my.obj my.dep
than MAKEDEP writes list to MY.DEP file.
5. QUESTION
-----------
If you have any question or suggestion, I would appreciate hearing them.
Send E-mail to the next address:
sulyok@math.klte.hu