2 # Makefile for compiling Perl under MS-DOS
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. But who would do serious development under
10 # By Diomidis Spinellis, March 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 msdos.c popen.c directory.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 msdos.obj popen.obj \
24 # Files in the MS-DOS distribution
25 DOSFILES=config.h dir.h director.c glob.c makefile msdos.c popen.c readme.msd \
26 changes.dds wishlist.dds patches manifest
32 MAN=perlman.1 perlman.2 perlman.3 perlman.4
35 # Cflags for the files that break under the optimiser
36 CPLAIN=-AL -DCRIPPLED_CC
37 # Cflags for all the rest
39 # Destination directory for executables
43 all: perl.exe perl.1 glob.exe
46 echo array+cmd+cons+consarg+doarg+doio+dolist+dump+ >perl.arp
47 echo eval+form+hash+perl+perly+regcomp+regexec+ >>perl.arp
48 echo stab+str+toke+util+msdos+popen+directory+\lib\setargv >>perl.arp
49 echo perl.exe >>perl.arp
51 echo /stack:32767 /NOE >>perl.arp
55 $(CC) glob.c \lib\setargv.obj -link /NOE
59 cons.obj: cons.c perly.h
60 consarg.obj: consarg.c
61 $(CC) $(CPLAIN) -c consarg.c
66 eval.obj: eval.c evalargs.xc
71 regcomp.obj: regcomp.c
72 regexec.obj: regexec.c
77 $(CC) $(CPLAIN) -c util.c
80 directory.obj: directory.c
85 nroff -man $(MAN) >perl.1
88 exepack perl.exe $(DESTDIR)\perl.exe
89 exepack glob.exe $(DESTDIR)\glob.exe
92 rm -f *.obj *.exe perl.1 perly.h perl.arp
98 mv $(DOSFILES) ../perl30.new
101 mv $(DOSFILES) ../msdos