Changeset 58933c in git


Ignore:
Timestamp:
Mar 28, 2000, 9:14:25 AM (24 years ago)
Author:
Kai Krüger <krueger@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '648d28f488f6ff08f5607ff229b9ad9e4a5b93c2')
Children:
280508457fc99b25c2f1e5f97221b04f934229b9
Parents:
3736d1372a5271d531bdbcd25eb96800e378ea8f
Message:
	* makefile.cc: Added generation of 'debug' version of module


git-svn-id: file:///usr/local/Singular/svn/trunk@4223 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/modgen/makefile.cc

    r3736d1 r58933c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: makefile.cc,v 1.2 2000-02-18 13:33:48 krueger Exp $ */
     4/* $Id: makefile.cc,v 1.3 2000-03-28 07:14:25 krueger Exp $ */
    55/*
    66* ABSTRACT: lib parsing
     
    5656  for(i=0; i<module->filecnt; i++)
    5757    fprintf(fp, " %s", object_name(cf[i].filename));
     58  fprintf(fp, "\nDOBJS\t= %s.og", module->name);
     59  for(i=0; i<module->filecnt; i++)
     60    fprintf(fp, " %s", object_name(cf[i].filename));
    5861
    5962  fprintf(fp, "\n\n");
     
    7881  fprintf(fp, "CXX\t= gcc\n");
    7982  fprintf(fp, "CFLAGS\t= -DNDEBUG -DBUILD_MODULE -I. -I../../include\n");
     83  fprintf(fp, "DCFLAGS\t= -DBUILD_MODULE -I. -I../../include\n");
    8084  fprintf(fp, "#LD\t=\n");
    8185  fprintf(fp, "\n");
     
    9397{
    9498  fprintf(fp, "clean:\n");
    95   fprintf(fp, "\trm -f *.o *.lo *.so* *.sl *.la *~ core\n\n");
     99  fprintf(fp, "\trm -f *.o *.og *.lo *.so* *.sl *.la *~ core\n\n");
    96100 
    97101  fprintf(fp, "distclean: clean\n");
     
    133137  )
    134138{
    135   fprintf(fp, "all:\t%s.so\n", module->name);
     139  fprintf(fp, "all:\t%s.so %s_g.so \n", module->name, module->name);
    136140  fprintf(fp, "\n");
    137141  fprintf(fp, "%%.o: %%.cc Makefile\n");
    138142  fprintf(fp, "\t${CC} ${CFLAGS} -c -fPIC -DPIC $< -o $*.o\n");
     143  fprintf(fp, "\n");
     144  fprintf(fp, "%%.og: %%.cc Makefile\n");
     145  fprintf(fp, "\t${CC} ${DCFLAGS} -c -fPIC -DPIC $< -o $*.og\n");
    139146  fprintf(fp, "\n");
    140147 
     
    148155          module->minor, module->level, module->name);
    149156  fprintf(fp, "\n");
     157
     158  fprintf(fp, "%s_g.so: ${DOBJS}\n", module->name);
     159  fprintf(fp, "\t${CC} ${DCFLAGS} -shared -Wl,-soname -Wl,%s_g.so.%d \\\n",
     160          module->name, module->major);
     161  fprintf(fp, "\t\t-o %s_g.so.%d.%d.%d ${DOBJS}\n", module->name,
     162          module->major, module->minor, module->level);
     163  fprintf(fp, "\trm -f %s_g.so\n", module->name);
     164  fprintf(fp, "\tln -s %s_g.so.%d.%d.%d %s_g.so\n", module->name,
     165          module->major, module->minor, module->level, module->name);
     166  fprintf(fp, "\n");
    150167}
    151168#endif /* ix86_Linux */
Note: See TracChangeset for help on using the changeset viewer.