Deleted Added
full compact
mkmakefile.c (8520) mkmakefile.c (8857)
1/*
2 * Copyright (c) 1993, 19801990
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 220 unchanged lines hidden (view full) ---

229{
230 FILE *fp;
231 register struct file_list *tp, *pf;
232 register struct device *dp;
233 struct device *save_dp;
234 register struct opt *op;
235 char *wd, *this, *needs, *special, *depends, *clean;
236 char fname[32];
1/*
2 * Copyright (c) 1993, 19801990
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 220 unchanged lines hidden (view full) ---

229{
230 FILE *fp;
231 register struct file_list *tp, *pf;
232 register struct device *dp;
233 struct device *save_dp;
234 register struct opt *op;
235 char *wd, *this, *needs, *special, *depends, *clean;
236 char fname[32];
237 int nreqs, first = 1, configdep, isdup, std, filetype,
237 int nreqs, first = 1, configdep, isdup, std, filetype,
238 imp_rule, no_obj, before_depend;
239
240 ftab = 0;
241 (void) strcpy(fname, "../../conf/files");
242openit:
243 fp = fopen(fname, "r");
244 if (fp == 0) {
245 perror(fname);
246 exit(1);
247 }
248 if(ident == NULL) {
249 printf("no ident line specified\n");
250 exit(1);
251 }
252next:
253 /*
254 * filename [ standard | optional ] [ config-dependent ]
255 * [ dev* | profiling-routine ] [ device-driver] [ no-obj ]
238 imp_rule, no_obj, before_depend;
239
240 ftab = 0;
241 (void) strcpy(fname, "../../conf/files");
242openit:
243 fp = fopen(fname, "r");
244 if (fp == 0) {
245 perror(fname);
246 exit(1);
247 }
248 if(ident == NULL) {
249 printf("no ident line specified\n");
250 exit(1);
251 }
252next:
253 /*
254 * filename [ standard | optional ] [ config-dependent ]
255 * [ dev* | profiling-routine ] [ device-driver] [ no-obj ]
256 * [ compile-with "compile rule" [no-implicit-rule] ]
256 * [ compile-with "compile rule" [no-implicit-rule] ]
257 * [ dependency "dependency-list"] [ before-depend ]
258 * [ clean "file-list"]
259 */
260 wd = get_word(fp);
261 if (wd == (char *)EOF) {
262 (void) fclose(fp);
263 if (first == 1) {
264 (void) sprintf(fname, "files.%s", machinename);

--- 354 unchanged lines hidden (view full) ---

619 if (ftp->f_depends)
620 fprintf(f, "%s: %s\n", np, ftp->f_depends );
621 else
622 fprintf(f, "%s: \n", np );
623 }
624 else {
625 *cp = '\0';
626 if (och == 'o') {
257 * [ dependency "dependency-list"] [ before-depend ]
258 * [ clean "file-list"]
259 */
260 wd = get_word(fp);
261 if (wd == (char *)EOF) {
262 (void) fclose(fp);
263 if (first == 1) {
264 (void) sprintf(fname, "files.%s", machinename);

--- 354 unchanged lines hidden (view full) ---

619 if (ftp->f_depends)
620 fprintf(f, "%s: %s\n", np, ftp->f_depends );
621 else
622 fprintf(f, "%s: \n", np );
623 }
624 else {
625 *cp = '\0';
626 if (och == 'o') {
627 fprintf(f, "%so:\n\t-cp $S/%so .\n\n",
627 fprintf(f, "%so:\n\t-cp $S/%so .\n\n",
628 tail(np), np);
629 continue;
630 }
631 if (ftp->f_depends)
628 tail(np), np);
629 continue;
630 }
631 if (ftp->f_depends)
632 fprintf(f, "%so: $S/%s%c %s\n", tail(np),
632 fprintf(f, "%so: $S/%s%c %s\n", tail(np),
633 np, och, ftp->f_depends);
634 else
633 np, och, ftp->f_depends);
634 else
635 fprintf(f, "%so: $S/%s%c\n", tail(np),
635 fprintf(f, "%so: $S/%s%c\n", tail(np),
636 np, och);
637 }
638 tp = tail(np);
639 special = ftp->f_special;
640 if (special == 0) {
641 char *ftype;
642 static char cmd[128];
643

--- 119 unchanged lines hidden ---
636 np, och);
637 }
638 tp = tail(np);
639 special = ftp->f_special;
640 if (special == 0) {
641 char *ftype;
642 static char cmd[128];
643

--- 119 unchanged lines hidden ---