home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / l / l920413.zip / GENDEP.AWK < prev    next >
Text File  |  1992-04-14  |  542b  |  16 lines

  1. /#/    {
  2.       gsub("_.*","",$1);
  3.       bases[$1] = substr($2,2);
  4.       next;
  5.     }
  6.  
  7.     { for (i = 1; i <= NF; i++)
  8.         {
  9.           printf "%s.o:\tbase.c\n",$i
  10.           printf "\t$(CC) $(CFLAGS) -c base.c -o %s.o -DLIBRARY_NAME=\"%s.library\" \\\n\t  -DLIBRARY_BASE=%s -DLIBRARY_VERS=__auto_%s_vers\n",$i,$i,bases[$i],$i
  11.           printf "%s_vers.o:\tvers.c\n",$i
  12.           printf "\t$(CC) $(CFLAGS) -c vers.c -o %s_vers.o -DLIBRARY_VERS=__auto_%s_vers\n",$i,$i
  13.           printf "##############################################################################\n"
  14.         }
  15.     }
  16.