From: qjb Date: Thu, 3 Aug 1989 14:48:48 +0000 (+0000) Subject: Added support for DEBUG_LIBS so that when this is defined X-Git-Tag: PATCH5 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/refs/tags/PATCH5 Added support for DEBUG_LIBS so that when this is defined debugging symbols are not removed from libraries. Author: jtkohl Auditor: qjb --- diff --git a/util/imake.includes/Imake.rules b/util/imake.includes/Imake.rules index 1a2b9c85..da30aa77 100644 --- a/util/imake.includes/Imake.rules +++ b/util/imake.includes/Imake.rules @@ -94,11 +94,18 @@ install:: @@\ * Rule for building objects in libraries. */ +#ifdef DEBUG_LIBS +/* When debugging, leave symbols alone (don't do LD) */ +#define library_obj_rule() @@\ +.c.o: @@\ + $(CC) -c $(CFLAGS) $*.c +#else #define library_obj_rule() @@\ .c.o: @@\ $(CC) -c $(CFLAGS) $*.c @@\ -$(LD) -x -r -o a.out $*.o @@\ $(MV) a.out $*.o +#endif #define library_ro_object(cfile) @@\ concat(cfile,.o): concat(cfile,.c) @@\