From bb64d49906e54128b1f1d0e50a5875f2506ef772 Mon Sep 17 00:00:00 2001 From: qjb Date: Tue, 26 Sep 1989 14:34:51 +0000 Subject: [PATCH] fix up handling of error tables in make clean and make depend. author: jtkohl auditor: qjb --- util/imake.includes/Imake.rules | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/util/imake.includes/Imake.rules b/util/imake.includes/Imake.rules index da30aa77..b539067d 100644 --- a/util/imake.includes/Imake.rules +++ b/util/imake.includes/Imake.rules @@ -22,6 +22,18 @@ * Rule for building objects in libraries. */ +#ifdef mips +/* + * The MIPS loader doesn't have the -X flag or its functionality. + */ +#define library_obj_rule() @@\ +.c.o: @@\ + $(CC) PROF_FLAG -c $(CFLAGS) $*.c @@\ + $(MV) $*.o profiled/$*.o @@\ + $(CC) -c $(CFLAGS) $*.c @@\ + -$(LD) -x -r -o a.out $*.o @@\ + $(MV) a.out $*.o +#else /* ! mips */ #define library_obj_rule() @@\ .c.o: @@\ $(CC) PROF_FLAG -c $(CFLAGS) $*.c @@\ @@ -29,7 +41,7 @@ $(CC) -c $(CFLAGS) $*.c @@\ -$(LD) -x -r -o a.out $*.o @@\ $(MV) a.out $*.o - +#endif /* mips */ /* * cc -R breaks profiling with -p on 4.3BSD on the VAX * (and probably elsewhere), so we don't do it for the profiled version. @@ -207,8 +219,8 @@ concat(tbl,.h) concat(tbl,.o): concat(tbl,.et) @@\ $(MV) concat(tbl,.et.o) concat3(profiled/,tbl,.o) @@\ $(COMPILE_ET) concat(tbl,.et) @@\ clean:: @@\ - $(RM) concat(src,.o) concat(src,.h) @@\ -depend:: concat(src,.h) + $(RM) concat(tbl,.o) concat(tbl,.h) @@\ +depend:: concat(tbl,.h) #else /* !PROFILED_LIBS */ #define comp_et_prof(tbl) comp_et(tbl) #endif /* PROFILED_LIBS */ @@ -217,10 +229,10 @@ depend:: concat(src,.h) concat(tbl,.h) concat(tbl,.o): concat(tbl,.et) @@\ $(COMPILE_ET) concat(tbl,.et) @@\ clean:: @@\ - $(RM) concat(src,.o) concat(src,.h) + $(RM) concat(tbl,.o) concat(tbl,.h) #define comp_et_depend(src) @@\ - comp_et(src) @@\ + comp_et_prof(src) @@\ @@\ depend:: concat(src,.h) @@ -228,7 +240,7 @@ depend:: concat(src,.h) concat(tbl,.o): concat(tbl,.ct) @@\ $(MAKE_COMMANDS) concat(tbl,.ct) @@\ clean:: @@\ - $(RM) concat(src,.o) + $(RM) concat(tbl,.o) /* * Rule for building some random object module -- 2.45.1