home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume25 / genmake / patch01 < prev    next >
Encoding:
Text File  |  1991-11-11  |  6.1 KB  |  284 lines

  1. Newsgroups: comp.sources.misc
  2. From: kyle@nick.csh.rit.edu (Kyle Saunders)
  3. Subject:  v25i041:  genmake - automatically generate a Makefile, Patch01
  4. Message-ID: <1991Nov10.203035.23883@sparky.imd.sterling.com>
  5. X-Md4-Signature: 55965c88a2d24587eaf4e06a98d75e1f
  6. Date: Sun, 10 Nov 1991 20:30:35 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: kyle@nick.csh.rit.edu (Kyle Saunders)
  10. Posting-number: Volume 25, Issue 41
  11. Archive-name: genmake/patch01
  12. Environment: BSD, SYSVR3
  13. Patch-To: genmake: Volume 25, Issue 34
  14.  
  15. This is patch01 for genmake 1.03.  Brings the source up to date 
  16. regarding <sys/dir.h> and <dirent.h>.  SYSVR3 people should have 
  17. an easier time of it.  Thanks to Pat Myrto (pat@mri.com).
  18.  
  19.     - Kyle
  20. ----
  21. # This is a shell archive.  Save it in a file, remove anything before
  22. # this line, and then unpack it by entering "sh file".  Note, it may
  23. # create directories; files and directories will be owned by you and
  24. # have default permissions.
  25. #
  26. # This archive contains:
  27. #
  28. #    README_patch
  29. #    patch01
  30. #
  31. echo x - README_patch
  32. sed 's/^X//' >README_patch << 'END-of-README_patch'
  33. X
  34. X    This is patch01 for genmake 1.03.  Brings the source up to date 
  35. Xregarding <sys/dir.h> and <dirent.h>.  SYSVR3 people should have an easier
  36. Xtime of it.  Thanks to Pat Myrto (pat@mri.com).
  37. X
  38. X    - Kyle
  39. X
  40. END-of-README_patch
  41. echo x - patch01
  42. sed 's/^X//' >patch01 << 'END-of-patch01'
  43. X*** Makefile    Sat Nov  9 18:34:24 1991
  44. X--- Makefile    Sat Nov  9 18:49:20 1991
  45. X***************
  46. X*** 1,6 ****
  47. X! #Genmake v1.03  10/30/91  Copyright(c) 1990, 1991 by Kyle Saunders
  48. X! CC= gcc
  49. X! COPTS= -O
  50. X  OFILES= \
  51. X      parse.o\
  52. X      genmake.o\
  53. X--- 1,6 ----
  54. X! #Genmake v1.03 pl1  10/30/91  Copyright(c) 1990, 1991 by Kyle Saunders
  55. X! CC= gcc
  56. X! CFLAGS= -g -DNODIRECT
  57. X  OFILES= \
  58. X      parse.o\
  59. X      genmake.o\
  60. X***************
  61. X*** 12,18 ****
  62. X      cpp.o
  63. X  #
  64. X  genmake:    $(OFILES)
  65. X!         $(CC) $(COPTS) -o genmake $(OFILES)
  66. X  
  67. X  types.h:    \
  68. X          consts.h\
  69. X--- 12,18 ----
  70. X      cpp.o
  71. X  #
  72. X  genmake:    $(OFILES)
  73. X!         $(CC) $(CFLAGS) -o genmake $(OFILES)
  74. X  
  75. X  types.h:    \
  76. X          consts.h\
  77. X***************
  78. X*** 21,49 ****
  79. X  
  80. X  parse.o:    types.h\
  81. X          parse.c
  82. X!         $(CC) $(COPTS) -c parse.c
  83. X  
  84. X  genmake.o:    types.h\
  85. X          genmake.c\
  86. X          opts.h\
  87. X          err.h
  88. X!         $(CC) $(COPTS) -c genmake.c
  89. X  
  90. X  nodes.o:    types.h\
  91. X          nodes.c
  92. X!         $(CC) $(COPTS) -c nodes.c
  93. X  
  94. X  build.o:    types.h\
  95. X          build.c
  96. X!         $(CC) $(COPTS) -c build.c
  97. X  
  98. X  print_deps.o:    types.h\
  99. X          print_deps.c
  100. X!         $(CC) $(COPTS) -c print_deps.c
  101. X  
  102. X  valid.o:    types.h\
  103. X          valid.c
  104. X!         $(CC) $(COPTS) -c valid.c
  105. X  
  106. X  consts.h:    
  107. X          touch consts.h
  108. X--- 21,49 ----
  109. X  
  110. X  parse.o:    types.h\
  111. X          parse.c
  112. X!         $(CC) $(CFLAGS) -c parse.c
  113. X  
  114. X  genmake.o:    types.h\
  115. X          genmake.c\
  116. X          opts.h\
  117. X          err.h
  118. X!         $(CC) $(CFLAGS) -c genmake.c
  119. X  
  120. X  nodes.o:    types.h\
  121. X          nodes.c
  122. X!         $(CC) $(CFLAGS) -c nodes.c
  123. X  
  124. X  build.o:    types.h\
  125. X          build.c
  126. X!         $(CC) $(CFLAGS) -c build.c
  127. X  
  128. X  print_deps.o:    types.h\
  129. X          print_deps.c
  130. X!         $(CC) $(CFLAGS) -c print_deps.c
  131. X  
  132. X  valid.o:    types.h\
  133. X          valid.c
  134. X!         $(CC) $(CFLAGS) -c valid.c
  135. X  
  136. X  consts.h:    
  137. X          touch consts.h
  138. X***************
  139. X*** 53,59 ****
  140. X  
  141. X  makef.o:    types.h\
  142. X          makef.c
  143. X!         $(CC) $(COPTS) -c makef.c
  144. X  
  145. X  err.h:    
  146. X          touch err.h
  147. X--- 53,59 ----
  148. X  
  149. X  makef.o:    types.h\
  150. X          makef.c
  151. X!         $(CC) $(CFLAGS) -c makef.c
  152. X  
  153. X  err.h:    
  154. X          touch err.h
  155. X***************
  156. X*** 63,67 ****
  157. X  
  158. X  cpp.o:    types.h\
  159. X          cpp.c
  160. X!         $(CC) $(COPTS) -c cpp.c
  161. X  
  162. X--- 63,67 ----
  163. X  
  164. X  cpp.o:    types.h\
  165. X          cpp.c
  166. X!         $(CC) $(CFLAGS) -c cpp.c
  167. X  
  168. X*** types.h    Sat Nov  9 18:04:18 1991
  169. X--- types.h    Sat Nov  9 18:19:04 1991
  170. X***************
  171. X*** 36,38 ****
  172. X--- 36,42 ----
  173. X      struct sym_ent        *next;
  174. X  } SYMENT;
  175. X  
  176. X+ #ifdef NODIRECT
  177. X+ #define direct    dirent
  178. X+ #endif
  179. X+ 
  180. X*** build.c    Sat Nov  9 18:04:15 1991
  181. X--- build.c    Sat Nov  9 18:16:33 1991
  182. X***************
  183. X*** 2,8 ****
  184. X--- 2,12 ----
  185. X  
  186. X  #include <stdio.h>
  187. X  #include <sys/types.h>
  188. X+ #ifdef NODIRECT
  189. X+ #include <dirent.h>
  190. X+ #else
  191. X  #include <sys/dir.h>
  192. X+ #endif
  193. X  #include "types.h"
  194. X  
  195. X  DNODE     *add_dep_node();
  196. X*** makef.c    Sat Nov  9 18:04:16 1991
  197. X--- makef.c    Sat Nov  9 18:18:25 1991
  198. X***************
  199. X*** 2,8 ****
  200. X--- 2,12 ----
  201. X  
  202. X  #include <stdio.h>
  203. X  #include <sys/types.h>
  204. X+ #ifdef NODIRECT
  205. X+ #include <dirent.h>
  206. X+ #else
  207. X  #include <sys/dir.h>
  208. X+ #endif
  209. X  #include "types.h"
  210. X  
  211. X  DNODE        *last_node();
  212. X***************
  213. X*** 61,67 ****
  214. X  OPTS        *opts;
  215. X  {
  216. X      switch (type) {
  217. X!         case CSOURCE:    fprintf(fp,"\t\t$(CC) $(COPTS) -c %s\n\n",name);
  218. X                  break;
  219. X          case CHEADER:    fprintf(fp,"\t\ttouch %s\n\n",name);
  220. X                  break;
  221. X--- 65,71 ----
  222. X  OPTS        *opts;
  223. X  {
  224. X      switch (type) {
  225. X!         case CSOURCE:    fprintf(fp,"\t\t$(CC) $(CFLAGS) -c %s\n\n",name);
  226. X                  break;
  227. X          case CHEADER:    fprintf(fp,"\t\ttouch %s\n\n",name);
  228. X                  break;
  229. X***************
  230. X*** 111,117 ****
  231. X  {
  232. X      fprintf(fp,"#%s\n",BANNER);
  233. X      fprintf(fp,"CC= cc\n");
  234. X!     fprintf(fp,"COPTS= -g\n");
  235. X      fprintf(fp,"OFILES= \\\n");
  236. X      if (!ofiles(make_list,fp,opts))
  237. X          return(0);
  238. X--- 115,121 ----
  239. X  {
  240. X      fprintf(fp,"#%s\n",BANNER);
  241. X      fprintf(fp,"CC= cc\n");
  242. X!     fprintf(fp,"CFLAGS= -g\n");
  243. X      fprintf(fp,"OFILES= \\\n");
  244. X      if (!ofiles(make_list,fp,opts))
  245. X          return(0);
  246. X***************
  247. X*** 222,228 ****
  248. X          ;
  249. X      name[i] = NULL;    
  250. X      fprintf(fp,"%s:\t$(OFILES)\n",name);
  251. X!     fprintf(fp,"\t\t$(CC) $(COPTS) -o %s $(OFILES)\n\n",name);
  252. X      return(1);
  253. X  }
  254. X  
  255. X--- 226,232 ----
  256. X          ;
  257. X      name[i] = NULL;    
  258. X      fprintf(fp,"%s:\t$(OFILES)\n",name);
  259. X!     fprintf(fp,"\t\t$(CC) $(CFLAGS) -o %s $(OFILES)\n\n",name);
  260. X      return(1);
  261. X  }
  262. X  
  263. X*** version.h    Sat Nov  9 18:04:18 1991
  264. X--- version.h    Sat Nov  9 18:10:41 1991
  265. X***************
  266. X*** 1,3 ****
  267. X  /* version.h */
  268. X  
  269. X! #define BANNER    "Genmake v1.03  10/30/91  Copyright(c) 1990, 1991 by Kyle Saunders"
  270. X--- 1,3 ----
  271. X  /* version.h */
  272. X  
  273. X! #define BANNER    "Genmake v1.03 pl1  10/30/91  Copyright(c) 1990, 1991 by Kyle Saunders"
  274. END-of-patch01
  275. exit
  276.  
  277.  
  278. exit 0 # Just in case...
  279. -- 
  280. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  281. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  282. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  283. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  284.