make.h revision 167330
1141104Sharti/*- 21590Srgrimes * Copyright (c) 1988, 1989, 1990, 1993 31590Srgrimes * The Regents of the University of California. All rights reserved. 41590Srgrimes * Copyright (c) 1989 by Berkeley Softworks 51590Srgrimes * All rights reserved. 61590Srgrimes * 71590Srgrimes * This code is derived from software contributed to Berkeley by 81590Srgrimes * Adam de Boor. 91590Srgrimes * 101590Srgrimes * Redistribution and use in source and binary forms, with or without 111590Srgrimes * modification, are permitted provided that the following conditions 121590Srgrimes * are met: 131590Srgrimes * 1. Redistributions of source code must retain the above copyright 141590Srgrimes * notice, this list of conditions and the following disclaimer. 151590Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 161590Srgrimes * notice, this list of conditions and the following disclaimer in the 171590Srgrimes * documentation and/or other materials provided with the distribution. 181590Srgrimes * 3. All advertising materials mentioning features or use of this software 191590Srgrimes * must display the following acknowledgement: 201590Srgrimes * This product includes software developed by the University of 211590Srgrimes * California, Berkeley and its contributors. 221590Srgrimes * 4. Neither the name of the University nor the names of its contributors 231590Srgrimes * may be used to endorse or promote products derived from this software 241590Srgrimes * without specific prior written permission. 251590Srgrimes * 261590Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 271590Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 281590Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 291590Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 301590Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 311590Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 321590Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 331590Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 341590Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 351590Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 361590Srgrimes * SUCH DAMAGE. 371590Srgrimes * 3894589Sobrien * @(#)make.h 8.3 (Berkeley) 6/13/95 3950477Speter * $FreeBSD: head/usr.bin/make/make.h 167330 2007-03-08 09:16:11Z fjoe $ 401590Srgrimes */ 411590Srgrimes 42141104Sharti#ifndef make_h_a91074b9 43141104Sharti#define make_h_a91074b9 44141104Sharti 45146066Sharti/** 46146066Sharti * make.h 47146066Sharti * The global definitions for make 481590Srgrimes */ 491590Srgrimes 50146177Sharti#include "util.h" 511590Srgrimes 52141104Shartistruct GNode; 53141104Shartistruct Lst; 54146060Shartistruct Buffer; 551590Srgrimes 561590Srgrimes/* 57145627Sharti * Warning flags 58145627Sharti */ 59145627Shartienum { 60145627Sharti WARN_DIRSYNTAX = 0x0001, /* syntax errors in directives */ 61145627Sharti}; 62145627Sharti 63141104Shartiint Make_TimeStamp(struct GNode *, struct GNode *); 64141104ShartiBoolean Make_OODate(struct GNode *); 65141104Shartiint Make_HandleUse(struct GNode *, struct GNode *); 66141104Shartivoid Make_Update(struct GNode *); 67141104Shartivoid Make_DoAllVar(struct GNode *); 68141104ShartiBoolean Make_Run(struct Lst *); 69146060Shartivoid Main_ParseArgLine(char *, int); 70146060Shartiint Main_ParseWarn(const char *, int); 71167330Sfjoevoid Main_AddSourceMakefile(const char *); 72138916Sharti 73141104Sharti#endif /* make_h_a91074b9 */ 74