Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
00001 /* 00002 00003 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00004 00005 This program is free software; you can redistribute it and/or modify it 00006 under the terms of version 2 of the GNU General Public License as 00007 published by the Free Software Foundation. 00008 00009 This program is distributed in the hope that it would be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 00013 Further, this software is distributed without any warranty that it is 00014 free of the rightful claim of any third person regarding infringement 00015 or the like. Any license provided herein, whether implied or 00016 otherwise, applies only to this software file. Patent licenses, if 00017 any, provided herein do not apply to combinations of this program with 00018 other software, or any other product whatsoever. 00019 00020 You should have received a copy of the GNU General Public License along 00021 with this program; if not, write the Free Software Foundation, Inc., 59 00022 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00023 00024 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00025 Mountain View, CA 94043, or: 00026 00027 http://www.sgi.com 00028 00029 For further information regarding this notice, see: 00030 00031 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00032 00033 */ 00034 00035 00036 #ifndef __MAKE_DEPEND_H__ 00037 #define __MAKE_DEPEND_H__ 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 /* 00044 * An opaque handle on the structure used to update a single target's make 00045 * dependencies rule. Each target built in a directory has one rule in an 00046 * automatically-generated make-dependencies file, usually named Makedepend 00047 * and sincluded by the directory's makefile. Each rule relates the target 00048 * to all source files that it #includes and all libraries/runtimes that it 00049 * links against. 00050 */ 00051 typedef struct mdrule *MDhandle; 00052 00053 /* 00054 * Call MDopen(toolname, filename, target, errorfunc) to open a make rule 00055 * for target in filename. Target may be null if the calling tool does not 00056 * yet know its output file's name. Errorfunc is called for malloc failure 00057 * and system call errors. Toolname is used to distinguish link-editor and 00058 * include-file dependencies for the same target (e.g., a command made using 00059 * a null-suffix rule). 00060 * 00061 * MDupdate(handle, dependency) adds the named dependency to the right part 00062 * of target's rule. Dependency must be in persistent store. 00063 * 00064 * MDclose(handle, target) updates the dependencies file named by MDopen's 00065 * filename argument. If a null target was passed to MDopen, a non-null one 00066 * must be passed to MDclose. MDclose locks filename, updates target's rule 00067 * in it or adds a new rule if target had none, and unlocks filename. Lines 00068 * in filename not matching '^target *:' are left alone. 00069 */ 00070 extern MDhandle MDopen(char *, char *, char *, void (*)(char *, ...)); 00071 extern void MDupdate(MDhandle, char *); 00072 extern void MDclose(MDhandle, char *); 00073 00074 #ifdef __cplusplus 00075 } 00076 #endif 00077 00078 #endif /* __MAKE_DEPEND_H__ */