perl5.002beta3
[p5sagit/p5-mst-13.2.git] / os2 / diff.x2pMakefile
CommitLineData
eacfb5f1 1*** x2p/Makefile.SH.orig Sun Nov 19 20:17:38 1995
2--- x2p/Makefile.SH Wed Nov 22 20:18:08 1995
4633a7c4 3***************
eacfb5f1 4*** 34,39 ****
5--- 34,52 ----
4633a7c4 6 shellflags = $shellflags
7
4633a7c4 8 libs = $libs
eacfb5f1 9+
10+ # These variables will be used in a future version to make
11+ # the make file more portable to non-unix systems.
4633a7c4 12+ AR = $ar
eacfb5f1 13+ EXE_EXT = $exe_ext
14+ LIB_EXT = $lib_ext
15+ OBJ_EXT = $obj_ext
16+ PATH_SEP = $path_sep
17+
18+ FIRSTMAKEFILE = $firstmakefile
4633a7c4 19+
eacfb5f1 20+ .SUFFIXES: .c \$(OBJ_EXT)
4633a7c4 21+
22 !GROK!THIS!
23
24 cat >>Makefile <<'!NO!SUBS!'
25***************
eacfb5f1 26*** 60,80 ****
4633a7c4 27
28 c = hash.c $(mallocsrc) str.c util.c walk.c
29
30! obj = hash.o $(mallocobj) str.o util.o walk.o
31
32 lintflags = -phbvxac
33
34 # grrr
35 SHELL = /bin/sh
36
37! .c.o:
38 $(CCCMD) $*.c
39
40 all: $(public) $(private) $(util)
41 touch all
42
43! a2p: $(obj) a2p.o
44! $(CC) $(LDFLAGS) $(obj) a2p.o $(libs) -o a2p
45
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
eacfb5f1 48--- 73,93 ----
4633a7c4 49
50 c = hash.c $(mallocsrc) str.c util.c walk.c
51
eacfb5f1 52! obj = hash$(OBJ_EXT) $(mallocobj) str$(OBJ_EXT) util$(OBJ_EXT) walk$(OBJ_EXT)
4633a7c4 53
54 lintflags = -phbvxac
55
56 # grrr
57 SHELL = /bin/sh
58
eacfb5f1 59! .c$(OBJ_EXT):
4633a7c4 60 $(CCCMD) $*.c
61
62 all: $(public) $(private) $(util)
63 touch all
64
eacfb5f1 65! a2p: $(obj) a2p$(OBJ_EXT)
66! $(CC) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs) -o a2p
4633a7c4 67
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
70***************
eacfb5f1 71*** 90,104 ****
4633a7c4 72 a2p.c: a2p.y
73 -@touch a2p.c
74
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
77
78 clean:
79! rm -f a2p *.o
80
81 realclean: clean
82 rm -f *.orig core $(addedbyconf) all malloc.c
83! rm -f makefile makefile.old
84
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.
eacfb5f1 87--- 103,117 ----
4633a7c4 88 a2p.c: a2p.y
89 -@touch a2p.c
90
eacfb5f1 91! a2p$(OBJ_EXT): a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h handy.h ../config.h str.h hash.h
4633a7c4 92 $(CCCMD) $(LARGE) a2p.c
93
94 clean:
eacfb5f1 95! rm -f a2p *$(OBJ_EXT)
4633a7c4 96
97 realclean: clean
98 rm -f *.orig core $(addedbyconf) all malloc.c
eacfb5f1 99! rm -f $(FIRSTMAKEFILE) $(FIRSTMAKEFILE).old
4633a7c4 100
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.
103***************
eacfb5f1 104*** 109,115 ****
4633a7c4 105 lint $(lintflags) $(defs) $(c) > a2p.fuzz
106
107 depend: $(mallocsrc) ../makedepend
108! ../makedepend
109
110 clist:
111 echo $(c) | tr ' ' '\012' >.clist
eacfb5f1 112--- 122,128 ----
4633a7c4 113 lint $(lintflags) $(defs) $(c) > a2p.fuzz
114
115 depend: $(mallocsrc) ../makedepend
116! sh ../makedepend
117
118 clist:
119 echo $(c) | tr ' ' '\012' >.clist
120***************
eacfb5f1 121*** 140,146 ****
4633a7c4 122 case `pwd` in
123 *SH)
124 $rm -f ../Makefile
125! ln Makefile ../Makefile
126 ;;
127 esac
128! rm -f makefile
eacfb5f1 129--- 153,159 ----
4633a7c4 130 case `pwd` in
131 *SH)
132 $rm -f ../Makefile
133! $ln Makefile ../Makefile
134 ;;
135 esac
136! rm -f $firstmakefile