home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.misc
- From: kyle@nick.csh.rit.edu (Kyle Saunders)
- Subject: v25i041: genmake - automatically generate a Makefile, Patch01
- Message-ID: <1991Nov10.203035.23883@sparky.imd.sterling.com>
- X-Md4-Signature: 55965c88a2d24587eaf4e06a98d75e1f
- Date: Sun, 10 Nov 1991 20:30:35 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: kyle@nick.csh.rit.edu (Kyle Saunders)
- Posting-number: Volume 25, Issue 41
- Archive-name: genmake/patch01
- Environment: BSD, SYSVR3
- Patch-To: genmake: Volume 25, Issue 34
-
- This is patch01 for genmake 1.03. Brings the source up to date
- regarding <sys/dir.h> and <dirent.h>. SYSVR3 people should have
- an easier time of it. Thanks to Pat Myrto (pat@mri.com).
-
- - Kyle
- ----
- # This is a shell archive. Save it in a file, remove anything before
- # this line, and then unpack it by entering "sh file". Note, it may
- # create directories; files and directories will be owned by you and
- # have default permissions.
- #
- # This archive contains:
- #
- # README_patch
- # patch01
- #
- echo x - README_patch
- sed 's/^X//' >README_patch << 'END-of-README_patch'
- X
- X This is patch01 for genmake 1.03. Brings the source up to date
- Xregarding <sys/dir.h> and <dirent.h>. SYSVR3 people should have an easier
- Xtime of it. Thanks to Pat Myrto (pat@mri.com).
- X
- X - Kyle
- X
- END-of-README_patch
- echo x - patch01
- sed 's/^X//' >patch01 << 'END-of-patch01'
- X*** Makefile Sat Nov 9 18:34:24 1991
- X--- Makefile Sat Nov 9 18:49:20 1991
- X***************
- X*** 1,6 ****
- X! #Genmake v1.03 10/30/91 Copyright(c) 1990, 1991 by Kyle Saunders
- X! CC= gcc
- X! COPTS= -O
- X OFILES= \
- X parse.o\
- X genmake.o\
- X--- 1,6 ----
- X! #Genmake v1.03 pl1 10/30/91 Copyright(c) 1990, 1991 by Kyle Saunders
- X! CC= gcc
- X! CFLAGS= -g -DNODIRECT
- X OFILES= \
- X parse.o\
- X genmake.o\
- X***************
- X*** 12,18 ****
- X cpp.o
- X #
- X genmake: $(OFILES)
- X! $(CC) $(COPTS) -o genmake $(OFILES)
- X
- X types.h: \
- X consts.h\
- X--- 12,18 ----
- X cpp.o
- X #
- X genmake: $(OFILES)
- X! $(CC) $(CFLAGS) -o genmake $(OFILES)
- X
- X types.h: \
- X consts.h\
- X***************
- X*** 21,49 ****
- X
- X parse.o: types.h\
- X parse.c
- X! $(CC) $(COPTS) -c parse.c
- X
- X genmake.o: types.h\
- X genmake.c\
- X opts.h\
- X err.h
- X! $(CC) $(COPTS) -c genmake.c
- X
- X nodes.o: types.h\
- X nodes.c
- X! $(CC) $(COPTS) -c nodes.c
- X
- X build.o: types.h\
- X build.c
- X! $(CC) $(COPTS) -c build.c
- X
- X print_deps.o: types.h\
- X print_deps.c
- X! $(CC) $(COPTS) -c print_deps.c
- X
- X valid.o: types.h\
- X valid.c
- X! $(CC) $(COPTS) -c valid.c
- X
- X consts.h:
- X touch consts.h
- X--- 21,49 ----
- X
- X parse.o: types.h\
- X parse.c
- X! $(CC) $(CFLAGS) -c parse.c
- X
- X genmake.o: types.h\
- X genmake.c\
- X opts.h\
- X err.h
- X! $(CC) $(CFLAGS) -c genmake.c
- X
- X nodes.o: types.h\
- X nodes.c
- X! $(CC) $(CFLAGS) -c nodes.c
- X
- X build.o: types.h\
- X build.c
- X! $(CC) $(CFLAGS) -c build.c
- X
- X print_deps.o: types.h\
- X print_deps.c
- X! $(CC) $(CFLAGS) -c print_deps.c
- X
- X valid.o: types.h\
- X valid.c
- X! $(CC) $(CFLAGS) -c valid.c
- X
- X consts.h:
- X touch consts.h
- X***************
- X*** 53,59 ****
- X
- X makef.o: types.h\
- X makef.c
- X! $(CC) $(COPTS) -c makef.c
- X
- X err.h:
- X touch err.h
- X--- 53,59 ----
- X
- X makef.o: types.h\
- X makef.c
- X! $(CC) $(CFLAGS) -c makef.c
- X
- X err.h:
- X touch err.h
- X***************
- X*** 63,67 ****
- X
- X cpp.o: types.h\
- X cpp.c
- X! $(CC) $(COPTS) -c cpp.c
- X
- X--- 63,67 ----
- X
- X cpp.o: types.h\
- X cpp.c
- X! $(CC) $(CFLAGS) -c cpp.c
- X
- X*** types.h Sat Nov 9 18:04:18 1991
- X--- types.h Sat Nov 9 18:19:04 1991
- X***************
- X*** 36,38 ****
- X--- 36,42 ----
- X struct sym_ent *next;
- X } SYMENT;
- X
- X+ #ifdef NODIRECT
- X+ #define direct dirent
- X+ #endif
- X+
- X*** build.c Sat Nov 9 18:04:15 1991
- X--- build.c Sat Nov 9 18:16:33 1991
- X***************
- X*** 2,8 ****
- X--- 2,12 ----
- X
- X #include <stdio.h>
- X #include <sys/types.h>
- X+ #ifdef NODIRECT
- X+ #include <dirent.h>
- X+ #else
- X #include <sys/dir.h>
- X+ #endif
- X #include "types.h"
- X
- X DNODE *add_dep_node();
- X*** makef.c Sat Nov 9 18:04:16 1991
- X--- makef.c Sat Nov 9 18:18:25 1991
- X***************
- X*** 2,8 ****
- X--- 2,12 ----
- X
- X #include <stdio.h>
- X #include <sys/types.h>
- X+ #ifdef NODIRECT
- X+ #include <dirent.h>
- X+ #else
- X #include <sys/dir.h>
- X+ #endif
- X #include "types.h"
- X
- X DNODE *last_node();
- X***************
- X*** 61,67 ****
- X OPTS *opts;
- X {
- X switch (type) {
- X! case CSOURCE: fprintf(fp,"\t\t$(CC) $(COPTS) -c %s\n\n",name);
- X break;
- X case CHEADER: fprintf(fp,"\t\ttouch %s\n\n",name);
- X break;
- X--- 65,71 ----
- X OPTS *opts;
- X {
- X switch (type) {
- X! case CSOURCE: fprintf(fp,"\t\t$(CC) $(CFLAGS) -c %s\n\n",name);
- X break;
- X case CHEADER: fprintf(fp,"\t\ttouch %s\n\n",name);
- X break;
- X***************
- X*** 111,117 ****
- X {
- X fprintf(fp,"#%s\n",BANNER);
- X fprintf(fp,"CC= cc\n");
- X! fprintf(fp,"COPTS= -g\n");
- X fprintf(fp,"OFILES= \\\n");
- X if (!ofiles(make_list,fp,opts))
- X return(0);
- X--- 115,121 ----
- X {
- X fprintf(fp,"#%s\n",BANNER);
- X fprintf(fp,"CC= cc\n");
- X! fprintf(fp,"CFLAGS= -g\n");
- X fprintf(fp,"OFILES= \\\n");
- X if (!ofiles(make_list,fp,opts))
- X return(0);
- X***************
- X*** 222,228 ****
- X ;
- X name[i] = NULL;
- X fprintf(fp,"%s:\t$(OFILES)\n",name);
- X! fprintf(fp,"\t\t$(CC) $(COPTS) -o %s $(OFILES)\n\n",name);
- X return(1);
- X }
- X
- X--- 226,232 ----
- X ;
- X name[i] = NULL;
- X fprintf(fp,"%s:\t$(OFILES)\n",name);
- X! fprintf(fp,"\t\t$(CC) $(CFLAGS) -o %s $(OFILES)\n\n",name);
- X return(1);
- X }
- X
- X*** version.h Sat Nov 9 18:04:18 1991
- X--- version.h Sat Nov 9 18:10:41 1991
- X***************
- X*** 1,3 ****
- X /* version.h */
- X
- X! #define BANNER "Genmake v1.03 10/30/91 Copyright(c) 1990, 1991 by Kyle Saunders"
- X--- 1,3 ----
- X /* version.h */
- X
- X! #define BANNER "Genmake v1.03 pl1 10/30/91 Copyright(c) 1990, 1991 by Kyle Saunders"
- END-of-patch01
- exit
-
-
- exit 0 # Just in case...
- --
- Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM
- Sterling Software, IMD UUCP: uunet!sparky!kent
- Phone: (402) 291-8300 FAX: (402) 291-4362
- Please send comp.sources.misc-related mail to kent@uunet.uu.net.
-