home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / bin / startup / msdos / macros.mk next >
Encoding:
Text File  |  1997-08-10  |  1.7 KB  |  63 lines

  1. # Define additional MSDOS specific settings.
  2. #
  3.  
  4. # Execution environment configuration.
  5. # Grab the current setting of COMSPEC.
  6. #
  7. .IMPORT .IGNORE : COMSPEC
  8.  
  9. # First check if SHELL is defined to be something other than COMSPEC.
  10. # If it is, then assume that SHELL is a Korn compatible shell like MKS's
  11. .IF $(SHELL) == $(NULL)
  12.    .IF $(COMSPEC) == $(NULL)
  13.       SHELL *:= $(ROOTDIR)$/bin$/sh$E
  14.    .ELSE
  15.       SHELL *:= $(COMSPEC)
  16.    .END
  17. .END
  18. GROUPSHELL *:= $(SHELL)
  19.  
  20. # Process release-specific refinements, if any.
  21. .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/macros.mk
  22.  
  23. # Applicable suffix definitions
  24. A *:= .lib    # Libraries
  25. E *:= .exe    # Executables
  26. F *:= .for    # Fortran
  27. O *:= .obj    # Objects
  28. P *:= .pas    # Pascal
  29. S *:= .asm    # Assembler sources
  30. V *:=         # RCS suffix
  31.  
  32. # Now set the remaining arguments depending on which SHELL we
  33. # are going to use.  COMSPEC (assumed to be command.com) or
  34. # MKS Korn shell.
  35. .IF $(SHELL) == $(COMSPEC)
  36.    SHELLFLAGS       *:= $(SWITCHAR)c
  37.    GROUPFLAGS       *:= $(SHELLFLAGS)
  38.    SHELLMETAS       *:= "<>|
  39.    GROUPSUFFIX      *:= .bat
  40.    DIVFILE          *=  $(TMPFILE:s,/,\)
  41.    RM               *=  del
  42.    RMFLAGS          *=
  43.    MV                *=  rename
  44.    __.DIVSEP-sh-yes *:= \\
  45.    __.DIVSEP-sh-no  *:= \\
  46. .ELSE
  47.    SHELLFLAGS       *:= -c
  48.    GROUPFLAGS       *:= 
  49.    SHELLMETAS       *:= *";?<>|()&][$$\#`'
  50.    GROUPSUFFIX      *:= .ksh
  51.    .MKSARGS         *:= yes
  52.    RM               *=  $(ROOTDIR)$/bin$/rm
  53.    RMFLAGS          *=  -f
  54.    MV                *=  $(ROOTDIR)$/bin$/mv
  55.    DIVFILE          *=  $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}})
  56.    __.DIVSEP-sh-yes *:= \\\
  57.    __.DIVSEP-sh-no  *:= \\
  58. .ENDIF
  59.  
  60.  
  61. # Does not respect case of filenames.
  62. .DIRCACHERESPCASE := no
  63.