- fprintf(f, "%s: Makefile machine/symbols.sort", fl->f_needs);
- if (machine == MACHINE_VAX)
- fprintf(f, " ${INLINECMD} locore.o emulate.o");
- else if (machine == MACHINE_TAHOE)
- fprintf(f, " ${INLINE} locore.o");
- else
- fprintf(f, " locore.o");
- fprintf(f, " ${OBJS} param.o ioconf.o swap%s.o\n", fl->f_fn);
- fprintf(f, "\t@echo loading %s\n\t@rm -f %s\n",
- fl->f_needs, fl->f_needs);
- if (first) {
- fprintf(f, "\t@sh ../conf/newvers.sh\n");
- fprintf(f, "\t@${CC} ${CFLAGS} -c vers.c\n");
- }
- switch (machine) {
-
- case MACHINE_VAX:
- fprintf(f, "\t@${LD} -n -o %s -e start -%c -T 80000000 ",
- fl->f_needs, debugging ? 'X' : 'x');
- fprintf(f,
- "locore.o emulate.o ${OBJS} vers.o ioconf.o param.o ");
- break;
-
- case MACHINE_TAHOE:
- fprintf(f, "\t@${LD} -n -o %s -e start -%c -T C0000800 ",
- fl->f_needs, debugging ? 'X' : 'x');
- fprintf(f, "locore.o ${OBJS} vers.o ioconf.o param.o ");
- break;
-
- case MACHINE_HP300:
- fprintf(f, "\t@${LD} -n -o %s -e start -%c ",
- fl->f_needs, debugging ? 'X' : 'x');
- fprintf(f, "locore.o ${OBJS} vers.o ioconf.o param.o ");
- break;
- }
- fprintf(f, "swap%s.o\n", fl->f_fn);
- fprintf(f, "\t@echo rearranging symbols\n");
- fprintf(f, "\t@-symorder machine/symbols.sort %s\n", fl->f_needs);
- fprintf(f, "\t@size %s\n", fl->f_needs);
- fprintf(f, "\t@chmod 755 %s\n\n", fl->f_needs);
+ fprintf(f, "%s: ${SYSTEM_DEP} swap%s.o", fl->f_needs, fl->f_fn);
+ if (first)
+ fprintf(f, " newvers");
+ fprintf(f, "\n\t${SYSTEM_LD_HEAD}\n");
+ fprintf(f, "\t${SYSTEM_LD} swap%s.o\n", fl->f_fn);
+ fprintf(f, "\t${SYSTEM_LD_TAIL}\n\n");