1 # : Makefile.SH,v 9820Revision: 4.0.1.2 9820Date: 91/06/07 10:14:43 $
3 # $Log: makefile.sm,v $
4 # Revision 4.1 92/08/07 17:18:37 lwall
7 # Revision 4.0.1.1 92/06/08 11:50:00 lwall
10 # Revision 4.0.1.2 91/06/07 10:14:43 lwall
11 # patch4: cflags now emits entire cc command except for the filename
12 # patch4: alternate make programs are now semi-supported
13 # patch4: uperl.o no longer tries to link in libraries prematurely
14 # patch4: installperl now installs x2p stuff too
16 # Revision 4.0.1.1 91/04/11 17:30:39 lwall
17 # patch1: C flags are now settable on a per-file basis
19 # Revision 4.0 91/03/20 00:58:54 lwall
38 # To use an alternate make, set in config.sh.
42 CCCMD = $(CC) -O2 -fomit-frame-pointer -fstrength-reduce -c -DMYMALLOC
48 manpages = perl.man h2ph.man
50 util = echo.ttp perlglob.ttp
52 sh = Makefile.SH makedepend.SH h2ph.SH
54 h1 = EXTERN.h INTERN.h arg.h array.h cmd.h config.h form.h handy.h
55 h2 = hash.h perl.h regcomp.h regexp.h spat.h stab.h str.h util.h
59 c1 = array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c
60 c2 = eval.c form.c hash.c $(mallocsrc) perl.c regcomp.c regexec.c
61 c3 = stab.c str.c toke.c util.c atarist.c usersub.c
65 obj1 = array.o cmd.o cons.o consarg.o doarg.o doio.o dolist.o dump.o
66 obj2 = eval.o form.o hash.o $(mallocobj) perl.o regcomp.o regexec.o
67 obj3 = stab.o str.o toke.o util.o atarist.o
69 obj = $(obj1) $(obj2) $(obj3)
79 all: $(public) $(util)
81 # This is the standard version that contains no "taint" checks and is
82 # used for all scripts that aren't set-id or running under something set-id.
83 # The $& notation is tells Sequent machines that it can do a parallel make,
84 # and is harmless otherwise.
86 perl.ttp: perly.o $(obj) usersub.o
87 $(CC) $(LARGE) $(CLDFLAGS) $(obj) perly.o usersub.o $(libs) -o perl.ttp -v -s
89 echo.ttp: wildmat.o echo.c
90 $(CC) -O -mshort -fomit-frame-pointer -o echo.ttp \
91 echo.c wildmat.o -liio16 -s
93 perlglob.ttp: wildmat.o perlglob.c
94 $(CC) -O -mshort -fomit-frame-pointer -o perlglob.ttp \
95 perlglob.c wildmat.o -liio16 -s
98 $(CC) -O -mshort -fomit-frame-pointer -c wildmat.c
101 @ echo Dummy dependency for dumb parallel make
104 perly.c: perly.y perly.fixer
105 @ echo 'Expect either' 29 shift/reduce and 59 reduce/reduce conflicts...
106 @ echo ' or' 27 shift/reduce and 61 reduce/reduce conflicts...
108 sh ./perly.fixer y.tab.c perly.c
110 echo 'extern YYSTYPE yylval;' >>perly.h
112 perly.o: perly.c perly.h $(h)
120 rm -f *.ttp report core
121 rm -f perly.c perly.h
123 # The following lint has practically everything turned on. Unfortunately,
124 # you have to wade through a lot of mumbo jumbo that can't be suppressed.
125 # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
129 lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz
132 - test -f perly.h || cp /dev/null perly.h
134 - test -s perly.h || /bin/rm -f perly.h
137 - cd t && chmod +x TEST */*.t
138 - cd t && (rm -f perl; $(SLN) ../perl .) && ./perl TEST </dev/tty
141 echo $(c) | tr ' ' '\012' >.clist
144 echo $(h) | tr ' ' '\012' >.hlist
147 echo $(sh) | tr ' ' '\012' >.shlist
149 # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
150 # If this runs make out of memory, delete /usr/include lines.