summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/parse.h
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-05-10 14:27:04 +0000
committerharti <harti@FreeBSD.org>2005-05-10 14:27:04 +0000
commit4e99d859a89fb83d3001764fed9e693baeb605e6 (patch)
tree1823597517d9c07dd62d8327fab8abb3190e11d9 /usr.bin/make/parse.h
parent59c55733793bcd9b59e27a4c51cff131f473b99a (diff)
downloadFreeBSD-src-4e99d859a89fb83d3001764fed9e693baeb605e6.zip
FreeBSD-src-4e99d859a89fb83d3001764fed9e693baeb605e6.tar.gz
Move the definitions of the OP_* constants from make.h into GNode.h
where they actually belong to. Move the definitions of the strings for special macros like "$*" from make.h to parse.h - they're used only in the parser. Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.211)
Diffstat (limited to 'usr.bin/make/parse.h')
-rw-r--r--usr.bin/make/parse.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.bin/make/parse.h b/usr.bin/make/parse.h
index dd5cd81..ec1a478 100644
--- a/usr.bin/make/parse.h
+++ b/usr.bin/make/parse.h
@@ -56,6 +56,24 @@ struct Lst;
#define PARSE_WARNING 2
#define PARSE_FATAL 1
+/*
+ * Definitions for the "local" variables. Used only for clarity.
+ */
+#define TARGET "@" /* Target of dependency */
+#define OODATE "?" /* All out-of-date sources */
+#define ALLSRC ">" /* All sources */
+#define IMPSRC "<" /* Source implied by transformation */
+#define PREFIX "*" /* Common prefix */
+#define ARCHIVE "!" /* Archive in "archive(member)" syntax */
+#define MEMBER "%" /* Member in "archive(member)" syntax */
+
+#define FTARGET "@F" /* file part of TARGET */
+#define DTARGET "@D" /* directory part of TARGET */
+#define FIMPSRC "<F" /* file part of IMPSRC */
+#define DIMPSRC "<D" /* directory part of IMPSRC */
+#define FPREFIX "*F" /* file part of PREFIX */
+#define DPREFIX "*D" /* directory part of PREFIX */
+
void Parse_Error(int, const char *, ...);
Boolean Parse_AnyExport(void);
Boolean Parse_IsVar(char *);
OpenPOWER on IntegriCloud