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 suffix.c mktemp.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 mktemp.obj
24 # Files in the OS/2 distribution
25 DOSFILES=config.h director.c dir.h makefile os2.c popen.c suffix.c \
32 MAN=perlman.1 perlman.2 perlman.3 perlman.4
35 # CBASE = flags everybody gets
36 # CPLAIN = flags for modules that give the compiler indigestion
37 # CFLAGS = flags for milder modules
38 # PERL = which version of perl to build
40 # For preliminary building: No optimization, DEBUGGING set, symbols included.
41 #CBASE=-AL -Zi -G2 -Gs -DDEBUGGING
46 # For the final build: Optimization on, symbols stripped.
47 CBASE=-AL -Zi -G2 -Gs -DDEBUGGING
49 CFLAGS=$(CBASE) -Oeglt
52 # Destination directory for executables
59 perl.exe: $(OBJ) perl.arp
60 link @perl.arp,perl,nul,/stack:32767 /NOE;
61 exehdr /nologo /newfiles /pmtype:windowcompat perl.exe >nul
63 perlsym.exe: $(OBJ) perl.arp
64 link @perl.arp,perlsym,nul,/stack:32767 /NOE /CODE;
65 exehdr /nologo /newfiles /pmtype:windowcompat perlsym.exe >nul
68 echo array+cmd+cons+consarg+doarg+doio+dolist+dump+ >perl.arp
69 echo eval+form+hash+perl+perly+regcomp+regexec+stab+suffix+ >>perl.arp
70 echo str+toke+util+os2+popen+director+\c600\lib\setargv >>perl.arp
73 $(CC) glob.c setargv.obj -link /NOE
74 exehdr /nologo /newfiles /pmtype:windowcompat glob.exe >nul
77 $(CC) $(CPLAIN) -c array.c
79 cons.obj: cons.c perly.h
80 consarg.obj: consarg.c
81 # $(CC) $(CPLAIN) -c consarg.c
86 eval.obj: eval.c evalargs.xc
87 $(CC) /B2c2l /B3c3l $(CFLAGS) -c eval.c
92 regcomp.obj: regcomp.c
93 regexec.obj: regexec.c
95 $(CC) $(CPLAIN) -c stab.c
99 $(CC) /B3c3l $(CFLAGS) -c toke.c
101 # $(CC) $(CPLAIN) -c util.c
104 director.obj: director.c
109 nroff -man $(MAN) >perl.1
112 exepack perl.exe $(DESTDIR)\perl.exe
113 exepack glob.exe $(DESTDIR)\glob.exe
116 rm -f *.obj *.exe perl.1 perly.h perl.arp
122 mv $(DOSFILES) ../perl30.new
125 mv $(DOSFILES) ../os2