Archive-Unzip-Burst

 view release on metacpan or  search on metacpan

unzip-6.0/amiga/smakefile  view on Meta::CPAN

        @Type "$(CWITHOPT)"              >>$(CFILEX)
        -Type $(CFILEX)

# write special MakeSFX flags
MakeSFXFlags:
        @Echo "$(CFLAGSS) $(CCPUOPTXM) DATA=NEAR NOSHORTINTEGERS" >$(CFILEM)
        # not really needed but if someday used:
        @Type "$(CWITHOPT)" >>$(CFILEM)
        -Type $(CFILEM)


# special rule for adding Amiga internal version number to amiga.c
amiga$(O):
        rx > env:VersionDate "say '""'translate(date('E'),'.','/')'""'"
        $(CC) WITH=$(CFILEC) LISTFILE=$>$(LISTEXTS) OBJNAME=$@ $*.c
        -Delete env:VersionDate


# needed in amiga/amiga.c
# should be set in startup-sequence, but just in case:
# (only works with OS 2.04 and above)

env\:WorkBench:
        @Execute < < (Workbench_smk.tmp)
           FailAt 21
           If not exists ENV:Workbench
              Version >nil:
              SetEnv Workbench $$Workbench
           Endif
        <


# #################
# ### LOCAL_UNZIP ###
# #################
#
# Read environment variable LOCAL_UNZIP and convert options from old Lattice
# v5 to new SAS/C v6 format. You may also use the new DEFINE= syntax but
# be sure not to mix v5 and v6 options, otherwise lctosc will be confused.
#
# e.g.: to define FOO_ONE and FOO_TWO enter:
#
# SetEnv LOCAL_UNZIP "-DFOO_ONE -DFOO_TWO"
#
# To make this permanent, i.e. survive an reboot, put the statement into
# your startup-sequence or (for AmigaDOS 2.0 or higher only) make sure
# LOCAL_UNZIP is stored in the ENVARC: directory too. To do this, simply
# copy the file from ENV: to ENVARC:
#   Copy ENV:LOCAL_UNZIP ENVARC:
#
# For a list of all valid non-standard compilation options see the INSTALL
# file in the root zip tree. Please read the notes there before using the
# non-standard options.
#
# e.g.: To use the non-standard timezone environment variable "INFOZIP_TZ"
#	(or another arbitary name) instead of "TZ", type in your shell:
#
#	Setenv LOCAL_UNZIP "-DTZ_ENVVAR=*"INFOZIP_TZ*""
#
# Note that you need to escape the quotes of INFOZIP_TZ with leading stars.
# To verify that LOCAL_UNZIP has been saved correctly, use the Getenv command:
#
#	Getenv LOCAL_UNZIP
#
# ...should display:
#
#	-DTZ_ENVVAR="INFOZIP_TZ"
#

local_unzip:
        @Execute < < (Local_UnZip_smk.tmp)
           Failat 21
           Echo ""
           If exists ENV:LOCAL_UNZIP
              Echo "Using environment variable LOCAL_UNZIP !"
              Echo "LOCAL_UNZIP: " NOLINE
              GetEnv LOCAL_UNZIP
              Copy >NIL: ENV:LOCAL_UNZIP SASCOPTS
           Else
              Echo "You could use envvar LOCAL_UNZIP to set your special compilation options."
              Echo "See the makefile for more information (LOCAL_UNZIP section)."
              Delete >nil: SASCOPTS quiet
           Endif
           Echo ""
           ; Do not remove the lctosc command! If LOCAL_UNZIP is unset, an
           ; empty file is created which needed by CommonFlags !
           ; Moreover, lctosc also accepts new v6 options, i.e. only changes
           ; known v5 options. Try `lctosc -Dfoo' and `lctosc DEFINE=foo'.
           ; However, you *must not* mix v5 and v6 options!
           lctosc > $(CWITHOPT)
           ; Now make sure that env:sc/scoptions are NOT used
           ; we just create an empty file. The options are stored elsewhere.
           Echo > SCOPTIONS "" NOLINE
        <



# Echo request to the user
#
request:
        @Echo ""
        @Echo " This makefile is for use with SAS/C version 6.58."
        @Echo " If you still have an older version, please upgrade!"
        @Echo " Patches are available on the Aminet under biz/patch/sc\#?."
        @Echo ""
        @Echo " Just a simple request..."
        @Echo " Please give me a mail that you compiled whether you encounter any errors"
        @Echo " or not. I'd just like to know how many Amiga users actually make use of"
        @Echo " this makefile."
        @Echo " If you mail me, I'll put you on my mailing-list and notify you whenever"
        @Echo " new versions of Info-Zip are released."
        @Echo " Have a look at the makefile for changes like CPU type, UtilLib, Stack, etc."
        @Echo " Feel free to mail comments, suggestions, critics..."
        @Echo " Enjoy Info-Zip !"
        @Echo " Haidinger Walter, <walthaid@unix.ict.tuwien.ac.at>"
        @Echo ""

# Echo help in case of an error
#
.ONERROR:
        @Echo ""



( run in 1.796 second using v1.01-cache-2.11-cpan-b16cb0d3907 )