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