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

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