3 With the advent of OS X, life is simpler: if you have the developer
4 tools installed, the standard awk makefile and gcc works fine, and
5 you can ignore the rest of this file, which is now hereby deprecated.
10 This file contains a make shell script and a version of the file
11 missing95.c for the Mac, courtesy of Dan Allen.
15 # MPW Shell script to build Awk using Apple's MRC compiler.
16 # 22 Jan 1999 - Created by Dan Allen.
17 # 25 Mar 1999 - Updated for newer Awk.
19 # Porting notes for the Mac:
21 # 1. main in main.c needs to have its prototype changed to:
23 # int main(int argc, char *argv[], char *environ[])
25 # 2. popen and pclose in missing95.c need to have as their body the
30 # as parallel pipes are not supported by MPW.
32 # 3. To make your Mac more responsive while long awk scripts run,
33 # you may want to add some SpinCursor calls to support cooperative multitasking.
35 # All of these minor changes can be put under "#ifdef powerc" for portability's sake.
40 Delete -i awk maketab maketab.c.o ytab.c.o b.c.o main.c.o parse.c.o proctab.c proctab.c.o tran.c.o lib.c.o run.c.o lex.c.o missing95.c.o
42 MRC ytab.c -w off -opt speed
43 MRC b.c -w off -opt speed
44 MRC main.c -w off -opt speed
45 MRC parse.c -w off -opt speed
46 MRC maketab.c -w off -opt speed
47 PPCLink -o maketab maketab.c.o "{PPCLibraries}InterfaceLib" "{PPCLibraries}MathLib" "{PPCLibraries}StdCLib" "{PPCLibraries}StdCRuntime.o" "{PPCLibraries}PPCCRuntime.o" "{PPCLibraries}PPCToolLibs.o" -t MPST -c 'MPS '
49 MRC proctab.c -w off -opt speed
50 MRC tran.c -w off -opt speed
51 MRC lib.c -w off -opt speed
52 MRC run.c -w off -opt speed
53 MRC lex.c -w off -opt speed
54 MRC missing95.c -w off -opt speed
55 PPCLink -o awk ytab.c.o b.c.o main.c.o parse.c.o proctab.c.o tran.c.o lib.c.o run.c.o lex.c.o missing95.c.o "{PPCLibraries}InterfaceLib" "{PPCLibraries}MathLib" "{PPCLibraries}StdCLib" "{PPCLibraries}StdCRuntime.o" "{PPCLibraries}PPCCRuntime.o" "{PPCLibraries}PPCToolLibs.o" -d
56 SetFile awk -d . -m . -t MPST -c 'MPS '
60 missing95.c for the Mac:
62 /* popen and pclose are not available on the Mac. */
66 FILE *popen(char *s, char *m) {