]> andersk Git - moira.git/blobdiff - util/imake.includes/Imake.rules
Added support for DEBUG_LIBS so that when this is defined
[moira.git] / util / imake.includes / Imake.rules
index 1a2b9c85e31d7ce2eb337da1906bab6b5e142438..da30aa774b3a78a3f26afbdcfe85f3bc72362308 100644 (file)
@@ -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)                                     @@\
This page took 0.03467 seconds and 4 git commands to generate.