#include "commands.h"
#include "variable.h"
+/* Define GCC_IS_NATIVE if gcc is the native development environment on
+ your system (gcc/bison/flex vs cc/yacc/lex). */
+#ifdef __MSDOS__
+#define GCC_IS_NATIVE
+#endif
+
/* This is the default list of suffixes for suffix rules.
`.s' must come last, so that a `.o' file will be made from
".c.ln",
"$(LINT.c) -C$* $<",
".y.ln",
+#ifndef __MSDOS__
"$(YACC.y) $< \n $(LINT.c) -C$* y.tab.c \n $(RM) y.tab.c",
+#else
+ "$(YACC.y) $< \n $(LINT.c) -C$* y_tab.c \n $(RM) y_tab.c",
+#endif
".l.ln",
"@$(RM) $*.c\n $(LEX.l) $< > $*.c\n$(LINT.c) -i $*.c -o $@\n $(RM) $*.c",
".y.c",
+#ifndef __MSDOS__
"$(YACC.y) $< \n mv -f y.tab.c $@",
+#else
+ "$(YACC.y) $< \n mv -f y_tab.c $@",
+#endif
".l.c",
"@$(RM) $@ \n $(LEX.l) $< > $@",
"ARFLAGS", "rfv",
#endif
"AS", "as",
+#ifdef GCC_IS_NATIVE
+ "CC", "gcc",
+ "CXX, "gcc",
+#else
"CC", "cc",
"CXX", "g++",
+#endif
/* This expands to $(CO) $(COFLAGS) $< $@ if $@ does not exist,
and to the empty string if $@ does exist. */
#endif /* Cray. */
"GET", SCCS_GET,
"LD", "ld",
+#ifdef GCC_IS_NATIVE
+ "LEX", "flex",
+#else
"LEX", "lex",
+#endif
"LINT", "lint",
"M2C", "m2c",
#ifdef pyr
"PC", "pc",
#endif /* CRAY. */
#endif /* pyr. */
+#ifdef GCC_IS_NATIVE
+ "YACC", "bison -y",
+#else
"YACC", "yacc", /* Or "bison -y" */
+#endif
"MAKEINFO", "makeinfo",
"TEX", "tex",
"TEXI2DVI", "texi2dvi",