Changeset cff7cec in git


Ignore:
Timestamp:
Sep 17, 2007, 11:35:19 AM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
6c71caa8d1d8cd461d9ad0f2cece5d1fa1754f96
Parents:
c985c5dd36d2679ca4394ff7202d4344fdb28cc3
Message:
*hannes: install depends on all


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

Legend:

Unmodified
Added
Removed
  • modules/modgen/makefile.cc

    rc985c5 rcff7cec  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: makefile.cc,v 1.29 2007-09-12 09:31:40 Singular Exp $ */
     4/* $Id: makefile.cc,v 1.30 2007-09-17 09:35:19 Singular Exp $ */
    55/*
    66* ABSTRACT: lib parsing
     
    4141/*
    4242  run mod_create_makefile();
    43    
     43
    4444 */
    4545/*========================================================================*/
     
    6161  cfilesv cf = module->files;
    6262  int i;
    63  
     63
    6464  if(trace)printf("Creating Makefile  ...");fflush(stdout);
    6565  write_header(fp, module->name, "#");
    6666  build_head_section(fp, module);
    6767  fprintf(fp, "SRCS\t= %s.cc", module->name);
    68  
     68
    6969  for(i=0; i<module->filecnt; i++)
    7070    fprintf(fp, " %s", cf[i].filename);
     
    8181  build_clean_section(fp, module);
    8282  build_install_section(fp, module);
    83  
     83
    8484  fprintf(fp, "\n");
    8585  fprintf(fp, "\n");
     
    119119  fprintf(fp, "clean:\n");
    120120  fprintf(fp, "\trm -f *.o *.og *.lo *.so* *.sl *.la *~ core\n\n");
    121  
     121
    122122  fprintf(fp, "distclean: clean\n");
    123   fprintf(fp, "\trm -f %s.cc %s.h Makefile *.bin *.pl\n\n", 
     123  fprintf(fp, "\trm -f %s.cc %s.h Makefile *.bin *.pl\n\n",
    124124               module->name, module->name);
    125125}
     
    131131  )
    132132{
    133   fprintf(fp, "install bindist:\n");
     133  fprintf(fp, "install bindist: all\n");
    134134  fprintf(fp, "\t${MKINSTALLDIRS} ${instdir}\n");
    135135  fprintf(fp, "\t${MKINSTALLDIRS} ${instdir}/MOD\n");
     
    138138  fprintf(fp, "\t${INSTALL_PROGRAM} %s.bin ${instdir}/MOD/%s.bin\n",
    139139          module->targetname, module->targetname);
    140   fprintf(fp, "install-bindist:\n");
     140  fprintf(fp, "install-bindist: all\n");
    141141  fprintf(fp, "\t${MKINSTALLDIRS} ${install_bindir}\n");
    142142  fprintf(fp, "\t${INSTALL_PROGRAM} %s.so ${install_bindir}/%s.so\n",
     
    154154  char *r = (char *)malloc(strlen(p)+4);
    155155  sprintf(r, "%s.o", p);
    156  
     156
    157157  *q = '.';
    158158  return(r);
     
    212212  fprintf(fp, "\t${CC} ${DCFLAGS} -g -c -fPIC -DPIC $< -o $*.og\n");
    213213  fprintf(fp, "\n");
    214  
     214
    215215  fprintf(fp, "%s.so: ${OBJS}\n", module->targetname);
    216216  fprintf(fp, "\t${CC} ${CFLAGS} -shared -Wl,-soname -Wl,%s.so.%d \\\n",
     
    229229          module->major, module->minor, module->level);
    230230  fprintf(fp, "\trm -f %s_g.so\n", module->targetname);
    231   fprintf(fp, "\tln -s %s_g.so.%d.%d.%d %s_g.so\n", module->targetname, 
     231  fprintf(fp, "\tln -s %s_g.so.%d.%d.%d %s_g.so\n", module->targetname,
    232232          module->major, module->minor, module->level, module->targetname);
    233233  fprintf(fp, "\n");
     
    262262  fprintf(fp, "\techo \"don't know how to build library\"\n");
    263263}
    264 #endif 
    265 #endif 
     264#endif
     265#endif
    266266
    267267//#  ifdef ix86_Win
Note: See TracChangeset for help on using the changeset viewer.