📄 makefile
字号:
## Makefile for compiling Perl under OS/2## Needs a Unix compatible make.# This makefile works for an initial compilation. It does not# include all dependencies and thus is unsuitable for serious# development work. Hey, I'm just inheriting what Diomidis gave me.## Originally by Diomidis Spinellis, March 1990# Adjusted for OS/2 port by Raymond Chen, June 1990## Source filesSRC = array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c \eval.c form.c hash.c perl.y perly.c regcomp.c regexec.c \stab.c str.c toke.c util.c os2.c popen.c director.c suffix.c mktemp.c# Object filesOBJ = perl.obj array.obj cmd.obj cons.obj consarg.obj doarg.obj doio.obj \dolist.obj dump.obj eval.obj form.obj hash.obj perly.obj regcomp.obj \regexec.obj stab.obj str.obj toke.obj util.obj os2.obj popen.obj \director.obj suffix.obj mktemp.obj# Files in the OS/2 distributionDOSFILES=config.h director.c dir.h makefile os2.c popen.c suffix.c \mktemp.c readme.os2# Yacc flagsYFLAGS=-d# Manual pagesMAN=perlman.1 perlman.2 perlman.3 perlman.4CC=cl# CBASE = flags everybody gets# CPLAIN = flags for modules that give the compiler indigestion# CFLAGS = flags for milder modules# PERL = which version of perl to build## For preliminary building: No optimization, DEBUGGING set, symbols included.#CBASE=-AL -Zi -G2 -Gs -DDEBUGGING#CPLAIN=$(CBASE) -Od#CFLAGS=$(CBASE) -Od#PERL=perlsym.exe# For the final build: Optimization on, symbols stripped.CBASE=-AL -Zi -G2 -Gs -DDEBUGGINGCPLAIN=$(CBASE) -OltCFLAGS=$(CBASE) -OegltPERL=perl.exe# Destination directory for executablesDESTDIR=\usr\bin# Deliverables#all: $(PERL) glob.exeperl.exe: $(OBJ) perl.arp link @perl.arp,perl,nul,/stack:32767 /NOE; exehdr /nologo /newfiles /pmtype:windowcompat perl.exe >nulperlsym.exe: $(OBJ) perl.arp link @perl.arp,perlsym,nul,/stack:32767 /NOE /CODE; exehdr /nologo /newfiles /pmtype:windowcompat perlsym.exe >nulperl.arp: echo array+cmd+cons+consarg+doarg+doio+dolist+dump+ >perl.arp echo eval+form+hash+perl+perly+regcomp+regexec+stab+suffix+ >>perl.arp echo str+toke+util+os2+popen+director+\c600\lib\setargv >>perl.arpglob.exe: glob.c $(CC) glob.c setargv.obj -link /NOE exehdr /nologo /newfiles /pmtype:windowcompat glob.exe >nularray.obj: array.c $(CC) $(CPLAIN) -c array.ccmd.obj: cmd.ccons.obj: cons.c perly.hconsarg.obj: consarg.c# $(CC) $(CPLAIN) -c consarg.cdoarg.obj: doarg.cdoio.obj: doio.cdolist.obj: dolist.cdump.obj: dump.ceval.obj: eval.c evalargs.xc $(CC) /B2c2l /B3c3l $(CFLAGS) -c eval.cform.obj: form.chash.obj: hash.cperl.obj: perl.yperly.obj: perly.cregcomp.obj: regcomp.cregexec.obj: regexec.cstab.obj: stab.c $(CC) $(CPLAIN) -c stab.cstr.obj: str.csuffix.obj: suffix.ctoke.obj: toke.c $(CC) /B3c3l $(CFLAGS) -c toke.cutil.obj: util.c# $(CC) $(CPLAIN) -c util.cperly.h: ytab.h cp ytab.h perly.hdirector.obj: director.cpopen.obj: popen.cos2.obj: os2.cperl.1: $(MAN) nroff -man $(MAN) >perl.1install: all exepack perl.exe $(DESTDIR)\perl.exe exepack glob.exe $(DESTDIR)\glob.execlean: rm -f *.obj *.exe perl.1 perly.h perl.arptags: ctags *.c *.h *.xcdosperl: mv $(DOSFILES) ../perl30.newdoskit: mv $(DOSFILES) ../os2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -