Changeset cff7cec in git
- Timestamp:
- Sep 17, 2007, 11:35:19 AM (16 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 6c71caa8d1d8cd461d9ad0f2cece5d1fa1754f96
- Parents:
- c985c5dd36d2679ca4394ff7202d4344fdb28cc3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/modgen/makefile.cc
rc985c5 rcff7cec 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: makefile.cc,v 1. 29 2007-09-12 09:31:40Singular Exp $ */4 /* $Id: makefile.cc,v 1.30 2007-09-17 09:35:19 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: lib parsing … … 41 41 /* 42 42 run mod_create_makefile(); 43 43 44 44 */ 45 45 /*========================================================================*/ … … 61 61 cfilesv cf = module->files; 62 62 int i; 63 63 64 64 if(trace)printf("Creating Makefile ...");fflush(stdout); 65 65 write_header(fp, module->name, "#"); 66 66 build_head_section(fp, module); 67 67 fprintf(fp, "SRCS\t= %s.cc", module->name); 68 68 69 69 for(i=0; i<module->filecnt; i++) 70 70 fprintf(fp, " %s", cf[i].filename); … … 81 81 build_clean_section(fp, module); 82 82 build_install_section(fp, module); 83 83 84 84 fprintf(fp, "\n"); 85 85 fprintf(fp, "\n"); … … 119 119 fprintf(fp, "clean:\n"); 120 120 fprintf(fp, "\trm -f *.o *.og *.lo *.so* *.sl *.la *~ core\n\n"); 121 121 122 122 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", 124 124 module->name, module->name); 125 125 } … … 131 131 ) 132 132 { 133 fprintf(fp, "install bindist: \n");133 fprintf(fp, "install bindist: all\n"); 134 134 fprintf(fp, "\t${MKINSTALLDIRS} ${instdir}\n"); 135 135 fprintf(fp, "\t${MKINSTALLDIRS} ${instdir}/MOD\n"); … … 138 138 fprintf(fp, "\t${INSTALL_PROGRAM} %s.bin ${instdir}/MOD/%s.bin\n", 139 139 module->targetname, module->targetname); 140 fprintf(fp, "install-bindist: \n");140 fprintf(fp, "install-bindist: all\n"); 141 141 fprintf(fp, "\t${MKINSTALLDIRS} ${install_bindir}\n"); 142 142 fprintf(fp, "\t${INSTALL_PROGRAM} %s.so ${install_bindir}/%s.so\n", … … 154 154 char *r = (char *)malloc(strlen(p)+4); 155 155 sprintf(r, "%s.o", p); 156 156 157 157 *q = '.'; 158 158 return(r); … … 212 212 fprintf(fp, "\t${CC} ${DCFLAGS} -g -c -fPIC -DPIC $< -o $*.og\n"); 213 213 fprintf(fp, "\n"); 214 214 215 215 fprintf(fp, "%s.so: ${OBJS}\n", module->targetname); 216 216 fprintf(fp, "\t${CC} ${CFLAGS} -shared -Wl,-soname -Wl,%s.so.%d \\\n", … … 229 229 module->major, module->minor, module->level); 230 230 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, 232 232 module->major, module->minor, module->level, module->targetname); 233 233 fprintf(fp, "\n"); … … 262 262 fprintf(fp, "\techo \"don't know how to build library\"\n"); 263 263 } 264 #endif 265 #endif 264 #endif 265 #endif 266 266 267 267 //# ifdef ix86_Win
Note: See TracChangeset
for help on using the changeset viewer.