2 # Makefile for compiling Perl under OS/2
4 # Needs a Unix compatible make.
5 # This makefile works for an initial compilation. It does not
6 # include all dependencies and thus is unsuitable for serious
7 # development work. Hey, I'm just inheriting what Diomidis gave me.
9 # Originally by Diomidis Spinellis, March 1990
10 # Adjusted for OS/2 port by Raymond Chen, June 1990
14 SRC = array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c \
15 eval.c form.c hash.c perl.y perly.c regcomp.c regexec.c \
16 stab.c str.c toke.c util.c os2.c popen.c director.c
19 OBJ = perl.obj array.obj cmd.obj cons.obj consarg.obj doarg.obj doio.obj \
20 dolist.obj dump.obj eval.obj form.obj hash.obj perly.obj regcomp.obj \
21 regexec.obj stab.obj str.obj toke.obj util.obj os2.obj popen.obj \
22 director.obj suffix.obj
24 # Files in the OS/2 distribution
25 DOSFILES=config.h director.c makefile os2.c popen.c suffix.c readme.os2
31 MAN=perlman.1 perlman.2 perlman.3 perlman.4
34 # CBASE = flags everybody gets
35 # CPLAIN = flags for modules that give the compiler indigestion
36 # CFLAGS = flags for milder modules
37 # PERL = which version of perl to build
39 # For preliminary building: No optimization, DEBUGGING set, symbols included.
40 #CBASE=-AL -Zi -G2 -Gs -DDEBUGGING
45 # For the final build: Optimization on, no DEBUGGING, symbols stripped.
51 # Destination directory for executables
58 perl.exe: $(OBJ) perl.arp
59 link @perl.arp,perl,nul,/stack:32767 /NOE;
60 exehdr /nologo /newfiles /pmtype:windowcompat perl.exe >nul
62 perlsym.exe: $(OBJ) perl.arp
63 link @perl.arp,perlsym,nul,/stack:32767 /NOE /CODE;
64 exehdr /nologo /newfiles /pmtype:windowcompat perlsym.exe >nul
67 echo array+cmd+cons+consarg+doarg+doio+dolist+dump+ >perl.arp
68 echo eval+form+hash+perl+perly+regcomp+regexec+stab+suffix+ >>perl.arp
69 echo str+toke+util+os2+popen+director+\c600\lib\setargv >>perl.arp
72 $(CC) glob.c \c600\lib\setargv.obj -link /NOE
73 exehdr /nologo /newfiles /pmtype:windowcompat glob.exe >nul
76 $(CC) $(CPLAIN) -c array.c
78 cons.obj: cons.c perly.h
79 consarg.obj: consarg.c
80 # $(CC) $(CPLAIN) -c consarg.c
85 eval.obj: eval.c evalargs.xc
86 $(CC) /B3 \c600\binp\c3l $(CFLAGS) -c eval.c
91 regcomp.obj: regcomp.c
92 regexec.obj: regexec.c
94 $(CC) $(CPLAIN) -c stab.c
98 $(CC) /B3 \c600\binp\c3l $(CFLAGS) -c toke.c
100 # $(CC) $(CPLAIN) -c util.c
103 director.obj: director.c
108 nroff -man $(MAN) >perl.1
111 exepack perl.exe $(DESTDIR)\perl.exe
112 exepack glob.exe $(DESTDIR)\glob.exe
115 rm -f *.obj *.exe perl.1 perly.h perl.arp
121 mv $(DOSFILES) ../perl30.new
124 mv $(DOSFILES) ../os2