1 *** x2p/Makefile.SH.orig Sun Nov 19 20:17:38 1995
2 --- x2p/Makefile.SH Wed Nov 22 20:18:08 1995
6 shellflags = $shellflags
10 + # These variables will be used in a future version to make
11 + # the make file more portable to non-unix systems.
16 + PATH_SEP = $path_sep
18 + FIRSTMAKEFILE = $firstmakefile
20 + .SUFFIXES: .c \$(OBJ_EXT)
24 cat >>Makefile <<'!NO!SUBS!'
28 c = hash.c $(mallocsrc) str.c util.c walk.c
30 ! obj = hash.o $(mallocobj) str.o util.o walk.o
40 all: $(public) $(private) $(util)
44 ! $(CC) $(LDFLAGS) $(obj) a2p.o $(libs) -o a2p
46 # I now supply a2p.c with the kits, so the following section is
47 # used only if you force byacc to run by saying
50 c = hash.c $(mallocsrc) str.c util.c walk.c
52 ! obj = hash$(OBJ_EXT) $(mallocobj) str$(OBJ_EXT) util$(OBJ_EXT) walk$(OBJ_EXT)
62 all: $(public) $(private) $(util)
65 ! a2p: $(obj) a2p$(OBJ_EXT)
66 ! $(CC) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs) -o a2p
68 # I now supply a2p.c with the kits, so the following section is
69 # used only if you force byacc to run by saying
75 ! a2p.o: a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h handy.h ../config.h str.h hash.h
76 $(CCCMD) $(LARGE) a2p.c
82 rm -f *.orig core $(addedbyconf) all malloc.c
83 ! rm -f makefile makefile.old
85 # The following lint has practically everything turned on. Unfortunately,
86 # you have to wade through a lot of mumbo jumbo that can't be suppressed.
91 ! a2p$(OBJ_EXT): a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h handy.h ../config.h str.h hash.h
92 $(CCCMD) $(LARGE) a2p.c
95 ! rm -f a2p *$(OBJ_EXT)
98 rm -f *.orig core $(addedbyconf) all malloc.c
99 ! rm -f $(FIRSTMAKEFILE) $(FIRSTMAKEFILE).old
101 # The following lint has practically everything turned on. Unfortunately,
102 # you have to wade through a lot of mumbo jumbo that can't be suppressed.
105 lint $(lintflags) $(defs) $(c) > a2p.fuzz
107 depend: $(mallocsrc) ../makedepend
111 echo $(c) | tr ' ' '\012' >.clist
113 lint $(lintflags) $(defs) $(c) > a2p.fuzz
115 depend: $(mallocsrc) ../makedepend
119 echo $(c) | tr ' ' '\012' >.clist
125 ! ln Makefile ../Makefile
133 ! $ln Makefile ../Makefile
136 ! rm -f $firstmakefile