X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/d1e9e56bceb28ec0434ba52bfda31e31599630a8..d56d6311194588f3dcf93a04c45a763e08129675:/util/imake.includes/Imake.rules 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) @@\