xref: /openbsd-src/usr.bin/make/var_int.h (revision a28daedfc357b214be5c701aa8ba8adb29a7f1c2)
1 #ifndef VAR_INT_H
2 #define VAR_INT_H
3 /*
4  * Copyright (c) 2001 Marc Espie.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS
16  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18  * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OPENBSD
19  * PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 /* Special variable names for hashing */
29 #define TARGET		  "@"	/* Target of dependency */
30 #define OODATE		  "?"	/* All out-of-date sources */
31 #define ALLSRC		  ">"	/* All sources */
32 #define IMPSRC		  "<"	/* Source implied by transformation */
33 #define PREFIX		  "*"	/* Common prefix */
34 #define ARCHIVE 	  "!"	/* Archive in "archive(member)" syntax */
35 #define MEMBER		  "%"	/* Member in "archive(member)" syntax */
36 #define LONGTARGET	".TARGET"
37 #define LONGOODATE	".OODATE"
38 #define LONGALLSRC	".ALLSRC"
39 #define LONGIMPSRC	".IMPSRC"
40 #define LONGPREFIX	".PREFIX"
41 #define LONGARCHIVE	".ARCHIVE"
42 #define LONGMEMBER	".MEMBER"
43 
44 /* System V   extended variables (get directory/file part) */
45 #define FTARGET		"@F"
46 #define DTARGET		"@D"
47 #define FIMPSRC		"<F"
48 #define DIMPSRC		"<D"
49 #define FPREFIX		"*F"
50 #define DPREFIX		"*D"
51 #define FARCHIVE	"!F"
52 #define DARCHIVE	"!D"
53 #define FMEMBER		"%F"
54 #define DMEMBER		"%D"
55 
56 #endif
57