home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip531.zip / atari / Makefile < prev    next >
Makefile  |  1996-02-11  |  33KB  |  900 lines

  1. #==============================================================================
  2. # Makefile for UnZip, UnZipSFX and fUnZip:  Unix and MS-DOS ("real" makes only)
  3. # Version:  5.20                                               11 February 1996
  4. #==============================================================================
  5.  
  6.  
  7. # INSTRUCTIONS (such as they are):
  8. #
  9. # "make vax"    -- makes UnZip on a generic Unix VAX in the current directory
  10. # "make list"    -- lists all supported systems (targets)
  11. # "make help"    -- provides pointers on what targets to try if problems occur
  12. # "make wombat" -- chokes and dies if you haven't added the specifics for your
  13. #            Wombat 68000 (or whatever) to the systems list
  14. #
  15. # CF are flags for the C compiler.  LF are flags for the loader.  LF2 are more
  16. # flags for the loader, if they need to be at the end of the line instead of at
  17. # the beginning (for example, some libraries).  FL and FL2 are the corre-
  18. # sponding flags for fUnZip.  LOCAL_UNZIP is an environment variable that can
  19. # be used to add default C flags to your compile without editing the Makefile
  20. # (e.g., -DDEBUG_STRUC, or -FPi87 on PCs using Microsoft C).
  21. #
  22. # Some versions of make do not define the macro "$(MAKE)"; this is rare, but
  23. # if things don't work, try using "make" instead of "$(MAKE)" in your system's
  24. # makerule.  Or try adding the following line to your .login file:
  25. #    setenv MAKE "make"
  26. # (That never works--makes which are too stupid to define MAKE are also too
  27. # stupid to look in the environment--but try it anyway for kicks. :-) )
  28. #
  29. # Memcpy and memset are provided for those systems that don't have them; they
  30. # are in fileio.c and will be used if -DZMEM is included in CF.  These days
  31. # almost all systems have them.
  32. #
  33. # Be sure to test your new UnZip (and UnZipSFX and fUnZip); successful compila-
  34. # tion does not always imply a working program.
  35.  
  36.  
  37. #####################
  38. # MACRO DEFINITIONS #
  39. #####################
  40.  
  41. # Defaults most systems use (use LOCAL_UNZIP in environment to add flags,
  42. # such as -DDOSWILD).
  43.  
  44. # UnZip flags
  45. CC = gcc#    try using "gcc" target rather than changing this (if you do,
  46. LD = $(CC)#    you MUST change LD, too--else "unresolved symbol:  ___main")
  47. LOC = $(LOCAL_UNZIP)
  48. CF = $(CFLAGS) $(LOC)
  49. LF = -o unzip$E
  50. LF2 = -s
  51.  
  52. # UnZipSFX flags
  53. SL = -o unzipsfx$E
  54. SL2 = $(LF2)
  55.  
  56. # fUnZip flags
  57. FL = -o funzip$E
  58. FL2 = $(LF2)
  59.  
  60. # general-purpose stuff
  61. CP = ln -s
  62. LN = ln
  63. RM = rm -f
  64. CHMOD = chmod
  65. STRIP = strip
  66. E = .ttp
  67. O = .o
  68. M = atari
  69. SHELL = /bin/sh
  70.  
  71. # object files
  72. OBJS1 = unzip$O crc32$O crctab$O crypt$O envargs$O explode$O
  73. OBJS2 = extract$O fileio$O globals$O inflate$O list$O match$O
  74. OBJS3 = process$O ttyio$O unreduce$O unshrink$O zipinfo$O
  75. OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $M$O
  76. LOBJS = $(OBJS)
  77. OBJSDLL = $(OBJS) api$O
  78. OBJX = unzipsfx$O crc32$O crctab$O crypt$O extract_$O fileio$O globals$O \
  79.     inflate$O match$O process_$O ttyio$O $M_$O
  80. LOBJX = $(OBJX)
  81. OBJF = funzip$O crc32$O crypt_$O globals_$O inflate_$O ttyio_$O
  82. #OBJS_OS2 = $(OBJS1:.o=.obj) $(OBJS2:.o=.obj) os2.obj
  83. #OBJF_OS2 = $(OBJF:.o=.obj)
  84.  
  85. UNZIP_H = unzip.h unzpriv.h globals.h
  86.  
  87. # installation
  88. INSTALL = cp#    probably can change this to 'install' if you have it
  89. # on some systems, manext=l and MANDIR=/usr/man/man$(manext) may be appropriate
  90. manext = 1
  91. prefix = /usr/local
  92. BINDIR = $(prefix)/bin#            where to install executables
  93. MANDIR = $(prefix)/man/man$(manext)#    where to install man pages
  94. INSTALLEDBIN = $(BINDIR)/funzip$E $(BINDIR)/zipinfo$E $(BINDIR)/unzipsfx$E \
  95.     $(BINDIR)/unzip$E
  96. INSTALLEDMAN = $(MANDIR)/unzip.$(manext) $(MANDIR)/funzip.$(manext) \
  97.     $(MANDIR)/unzipsfx.$(manext) $(MANDIR)/zipinfo.$(manext)
  98. #
  99. UNZIPS = unzip$E funzip$E unzipsfx$E
  100. # this is a little ugly...well, no, it's a lot ugly:
  101. MANS = unix/unzip.1 unix/unzipsfx.1 unix/zipinfo.1 unix/funzip.1
  102. DOCS = unzip.doc unzipsfx.doc zipinfo.doc funzip.doc
  103.  
  104. # list of supported systems/targets in this version
  105. SYSTEMS1 = 386i 3Bx 7300 7300_gcc aix aix_rt amdahl amdahl_eft apollo
  106. SYSTEMS2 = aviion bcc_dos bsd bsd386 bull coherent convex cray cray_opt
  107. SYSTEMS3 = cyber_sgi dec djgpp djgpp1 dnix encore eta gcc gcc_dos generic
  108. SYSTEMS4 = generic2 generic3 gould hk68 hp hpux linux linux_dos linux_lib
  109. SYSTEMS5 = linux_zlib minix mips msc_dos next next10 next2x next3x nextfat
  110. SYSTEMS6 = osf1 pixel ptx pyramid realix regulus rs6000 sco sco_dos sco_sl
  111. SYSTEMS7 = sco_x286 sequent sgi solaris stardent stellar sun sysv sysv_gcc
  112. SYSTEMS8 = sysv6300 tahoe ti_sysv ultrix vax v7 wombat xenix xos
  113.  
  114.  
  115. ####################
  116. # DEFAULT HANDLING #
  117. ####################
  118.  
  119. # By default, print help on which makefile targets to try.  (The SYSTEM
  120. # variable is no longer supported; use "make <target>" instead.)
  121.  
  122. help:
  123.     @echo ""
  124.     @echo\
  125.  "  If you're not sure about the characteristics of your system, try typing"
  126.     @echo\
  127.  '  "make generic".  If the compiler barfs and says something unpleasant about'
  128.     @echo\
  129.  '  "timezone redefined," try typing "make clean" followed by "make generic2".'
  130.     @echo\
  131.  '  If, on the other hand, it complains about an undefined symbol _ftime, try'
  132.     @echo\
  133.  '  typing "make clean" followed by "make generic3".  One of these actions'
  134.     @echo\
  135.  '  should produce a working copy of unzip on most Unix systems.  If you know'
  136.     @echo\
  137.  '  a bit more about the machine on which you work, you might try "make list"'
  138.     @echo\
  139.  '  for a list of the specific systems supported herein.  (Many of them do'
  140.     @echo\
  141.  "  exactly the same thing, so don't agonize too much over which to pick if"
  142.     @echo\
  143.  '  two or more sound equally likely.)  Also check out the INSTALL file for'
  144.     @echo\
  145.  '  notes on compiling various targets.  As a last resort, feel free to read'
  146.     @echo\
  147.  '  the numerous comments within the Makefile itself.  Note that to compile'
  148.     @echo\
  149.  '  the decryption version of UnZip, you must obtain the full versions of'
  150.     @echo\
  151.  '  crypt.c and crypt.h (see the "Where" file for ftp and mail-server sites).'
  152.     @echo\
  153.  '  Have a mostly pretty good day.'
  154.     @echo ""
  155.  
  156. list:
  157.     @echo ""
  158.     @echo\
  159.  'Type "make <system>", where <system> is one of the following:'
  160.     @echo ""
  161.     @echo  "    $(SYSTEMS1)"
  162.     @echo ""
  163.     @echo  "    $(SYSTEMS2)"
  164.     @echo  "    $(SYSTEMS3)"
  165.     @echo  "    $(SYSTEMS4)"
  166.     @echo  "    $(SYSTEMS5)"
  167.     @echo  "    $(SYSTEMS6)"
  168.     @echo  "    $(SYSTEMS7)"
  169.     @echo  "    $(SYSTEMS8)"
  170. #    @echo ""
  171. #    @echo\
  172. # 'Targets for related utilities (ZipInfo and fUnZip) include:'
  173. #    @echo ""
  174. #    @echo  "    $(SYS_UTIL1)"
  175. #    @echo  "    $(SYS_UTIL2)"
  176.     @echo ""
  177.     @echo\
  178.  'For further (very useful) information, please read the comments in Makefile.'
  179.     @echo ""
  180.  
  181. generic_msg:
  182.     @echo ""
  183.     @echo\
  184.  '  Attempting "make generic" now.  If this fails for some reason, type'
  185.     @echo\
  186.  '  "make help" and/or "make list" for suggestions.'
  187.     @echo ""
  188.  
  189.  
  190. ###############################################
  191. # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
  192. ###############################################
  193.  
  194. # this is for GNU make; comment out and notify zip-bugs if it causes errors
  195. .SUFFIXES:    .c .o .obj
  196.  
  197. # yes, we should be able to use the $O macro to combine these two, but it
  198. # fails on some brain-damaged makes (e.g., AIX's)...no big deal
  199. .c.o:
  200.     $(CC) -c $(CF) $*.c
  201.  
  202. .c.obj:
  203.     $(CC) -c $(CF) $*.c
  204.  
  205. # this doesn't work...directories are always a pain with implicit rules
  206. #.1.doc:        unix/$<
  207. #    nroff -Tman -man $< | col -b | uniq | \
  208. #     sed 's/Sun Release ..../Info-ZIP        /' > $@
  209.  
  210.  
  211. # these rules are specific to Suns and are really intended only for the
  212. # authors' use in creating non-Unix documentation files (which are pro-
  213. # vided with both source and binary distributions).  We should probably
  214. # add a ".1.man" rule for more generic systems...
  215.  
  216. unzip.doc:    unix/unzip.1
  217.     nroff -Tman -man unix/unzip.1 | col -b | uniq | \
  218.      sed 's/Sun Release ..../Info-ZIP        /' > $@
  219.  
  220. unzipsfx.doc:    unix/unzipsfx.1
  221.     nroff -Tman -man unix/unzipsfx.1 | col -b | uniq | \
  222.      sed 's/Sun Release ..../Info-ZIP        /' > $@
  223.  
  224. zipinfo.doc:    unix/zipinfo.1
  225.     nroff -Tman -man unix/zipinfo.1 | col -b | uniq | \
  226.      sed 's/Sun Release ..../Info-ZIP        /' > $@
  227.  
  228. funzip.doc:    unix/funzip.1
  229.     nroff -Tman -man unix/funzip.1 | col -b | uniq | \
  230.      sed 's/Sun Release ..../Info-ZIP        /' > $@
  231.  
  232.  
  233. all:        generic_msg generic
  234. unzips:        $(UNZIPS)
  235. objs:        $(OBJS)
  236. objsdll:    $(OBJSDLL)
  237. docs:        $(DOCS)
  238. unzipsman:    unzips docs
  239. unzipsdocs:    unzips docs
  240.  
  241.  
  242. # EDIT HERE FOR PARALLEL MAKES on Sequent (and others?)--screws up MS-DOS
  243. # make utilities if default:  change "unzip$E:" to "unzip$E:&"
  244.  
  245. unzip$E:    $(OBJS)            # add `&' for parallel makes
  246.     $(LD) $(LF) $(LOBJS) $(LF2)
  247.  
  248. unzipsfx$E:    $(OBJX)            # add `&' for parallel makes
  249.     $(LD) $(SL) $(LOBJX) $(SL2)
  250.  
  251. funzip$E:    $(OBJF)            # add `&' for parallel makes
  252.     $(LD) $(FL) $(OBJF) $(FL2)
  253.  
  254. zipinfo$E:    unzip$E            # `&' is pointless here...
  255.     @echo\
  256.  '  This is a Unix-specific target.  ZipInfo is not enabled in some MS-DOS'
  257.     @echo\
  258.  '  versions of UnZip; if it is in yours, copy unzip.exe to zipinfo.exe'
  259.     @echo\
  260.  '  or else invoke as "unzip -Z" (in a batch file, for example).'
  261.     $(LN) unzip$E zipinfo$E
  262.  
  263.  
  264. crc32$O:    crc32.c $(UNZIP_H) zip.h
  265. crctab$O:    crctab.c $(UNZIP_H) zip.h
  266. crypt$O:    crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h
  267. envargs$O:    envargs.c $(UNZIP_H)
  268. explode$O:    explode.c $(UNZIP_H)
  269. extract$O:    extract.c $(UNZIP_H) crypt.h
  270. fileio$O:    fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
  271. funzip$O:    funzip.c $(UNZIP_H) crypt.h ttyio.h tables.h
  272. globals$O:    globals.c $(UNZIP_H)
  273. inflate$O:    inflate.c inflate.h $(UNZIP_H)
  274. list$O:        list.c $(UNZIP_H)
  275. match$O:    match.c $(UNZIP_H)
  276. process$O:    process.c $(UNZIP_H)
  277. ttyio$O:    ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
  278. unreduce$O:    unreduce.c $(UNZIP_H)
  279. unshrink$O:    unshrink.c $(UNZIP_H)
  280. unzip$O:    unzip.c $(UNZIP_H) crypt.h version.h consts.h
  281. zipinfo$O:    zipinfo.c $(UNZIP_H)
  282.  
  283. crypt_$O:    crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h    # funzip only
  284.     $(CP) crypt.c crypt_.c
  285.     $(CC) -c $(CF) -DFUNZIP crypt_.c
  286.     $(RM) crypt_.c
  287.  
  288. extract_$O:    extract.c $(UNZIP_H) crypt.h            # unzipsfx only
  289.     $(CP) extract.c extract_.c
  290.     $(CC) -c $(CF) -DSFX extract_.c
  291.     $(RM) extract_.c
  292.  
  293. globals_$O:    globals.c $(UNZIP_H)                # funzip only
  294.     $(CP) globals.c globals_.c
  295.     $(CC) -c $(CF) -DFUNZIP globals_.c
  296.     $(RM) globals_.c
  297.  
  298. inflate_$O:    inflate.c inflate.h $(UNZIP_H) crypt.h        # funzip only
  299.     $(CP) inflate.c inflate_.c
  300.     $(CC) -c $(CF) -DFUNZIP inflate_.c
  301.     $(RM) inflate_.c
  302.  
  303. ttyio_$O:    ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h    # funzip only
  304.     $(CP) ttyio.c ttyio_.c
  305.     $(CC) -c $(CF) -DFUNZIP ttyio_.c
  306.     $(RM) ttyio_.c
  307.  
  308. msdos$O:    msdos/msdos.c $(UNZIP_H) version.h        # DOS only
  309.     $(CC) -c $(CF) msdos/msdos.c
  310.  
  311. # version() not used by unzipsfx, so no version.h dependency
  312. msdos_$O:    msdos/msdos.c $(UNZIP_H)            # DOS unzipsfx
  313.     $(CP) msdos\msdos.c msdos_.c > nul
  314.     $(CC) -c $(CF) -DSFX msdos_.c
  315.     $(RM) msdos_.c
  316.  
  317. #os2$O:        os2/os2.c $(UNZIP_H)                # OS/2 only
  318. #    $(CC) -c $(CF) os2/os2.c
  319.  
  320.  
  321. process_$O:    process.c $(UNZIP_H)                # unzipsfx only
  322.     $(CP) process.c process_.c
  323.     $(CC) -c $(CF) -DSFX process_.c
  324.     $(RM) process_.c
  325.  
  326. unix$O:        unix/unix.c $(UNZIP_H) version.h        # Unix only
  327.     $(CC) -c $(CF) unix/unix.c
  328.  
  329. # version() not used by unzipsfx, so no version.h dependency
  330. unix_$O:    unix/unix.c $(UNZIP_H)                # Unix unzipsfx
  331.     $(CP) unix/unix.c unix_.c
  332.     $(CC) -c $(CF) -DSFX unix_.c
  333.     $(RM) unix_.c
  334.  
  335. atari_$O:    atari.c $(UNZIP_H)
  336.     $(CP) atari.c atari_.c
  337.     $(CC) -c $(CF) -DSFX atari_.c
  338.     $(RM) atari_.c
  339.  
  340. unzipsfx$O:    unzip.c $(UNZIP_H) crypt.h version.h consts.h    # unzipsfx only
  341.     $(CP) unzip.c unzipsfx.c
  342.     $(CC) -c $(CF) -DSFX unzipsfx.c
  343.     $(RM) unzipsfx.c
  344.  
  345.  
  346. unix_make:
  347. #    @echo\
  348. # '(Ignore any errors from `make'"' due to the following command; it's harmless.)"
  349.     -@2>&1 $(LN) unix/Makefile . > /dev/null || echo > /dev/null
  350.  
  351. # this really only works for Unix targets, unless specify E and O on cmd line
  352. clean:
  353.     @echo ""
  354.     @echo '         This is a Unix-specific target.  (Just so you know.)'
  355.     @echo ""
  356.     rm -f $(OBJS) api$O apihelp$O unzipstb$O $(OBJF) $(OBJX) $(UNZIPS)
  357.  
  358. install:    $(UNZIPS) $(MANS)
  359.     $(INSTALL) $(UNZIPS) $(BINDIR)
  360.     $(RM) $(BINDIR)/zipinfo$E
  361.     $(LN) $(BINDIR)/unzip$E $(BINDIR)/zipinfo$E
  362.     $(INSTALL) unix/unzip.1 $(MANDIR)/unzip.$(manext)
  363.     $(INSTALL) unix/unzipsfx.1 $(MANDIR)/unzipsfx.$(manext)
  364.     $(INSTALL) unix/zipinfo.1 $(MANDIR)/zipinfo.$(manext)
  365.     $(INSTALL) unix/funzip.1 $(MANDIR)/funzip.$(manext)
  366.     $(CHMOD) 755  $(INSTALLEDBIN)
  367.     $(CHMOD) 644  $(INSTALLEDMAN)
  368.  
  369. # alternatively, could use zip method:  -cd $(BINDIR); rm -f $(UNZIPS)  [etc.]
  370. uninstall:
  371.     rm -f $(INSTALLEDBIN) $(INSTALLEDMAN)
  372.  
  373.  
  374. TESTZIP = testmake.zip    # the test zipfile
  375.  
  376. # test some basic features of the build
  377. test:        check
  378.  
  379. check:    unzips
  380.     @echo '  This is a Unix-specific target.  (Just so you know.)'
  381.     if test ! -f $(TESTZIP); then \
  382.         echo "  error:  can't find test file $(TESTZIP)"; exit 1; fi
  383. #
  384.     echo "  testing extraction"
  385.     ./unzip -b $(TESTZIP) testmake.zipinfo
  386.     if test $? ; then \
  387.         echo "  error:  file extraction from $(TESTZIP) failed"; exit 1; fi
  388. #
  389.     echo '  testing zipinfo (unzip -Z)'
  390.     ./unzip -Z $(TESTZIP) > testmake.unzip-Z
  391.     if diff testmake.unzip-Z testmake.zipinfo; then ;; else \
  392.         echo '  error:  zipinfo output doesn't match stored version'; fi
  393.     $(RM) testmake.unzip-Z testmake.zipinfo
  394. #
  395.     echo '  testing unzip -d exdir option'
  396.     ./unzip -b $(TESTZIP) -d testun
  397.     cat testun/notes
  398. #
  399.     echo '  testing unzip -o and funzip (ignore funzip warning)'
  400.     ./unzip -boq $(TESTZIP) notes -d testun
  401.     ./funzip < $(TESTZIP) > testun/notes2
  402.     if diff testun/notes testun/notes2; then ;; else \
  403.         echo 'error:  funzip output disagrees with unzip'; fi
  404. #
  405.     echo '  testing unzipsfx (self-extractor)'
  406.     cat unzipsfx $(TESTZIP) > testsfx
  407.     $(CHMOD) 0700 testsfx
  408.     ./testsfx -b notes
  409.     if diff notes testun/notes; then ;; else \
  410.         echo '  error:  unzipsfx file disagrees with unzip'; fi
  411.     $(RM) testsfx notes testun/notes testun/notes2
  412.     rmdir testun
  413. #
  414.     echo '  testing complete.'
  415.  
  416.  
  417. ################################
  418. # INDIVIDUAL MACHINE MAKERULES #
  419. ################################
  420.  
  421. #----------------------------------------------------------------------------
  422. #  Generic targets (can't assume make utility groks "$(MAKE)")
  423. #----------------------------------------------------------------------------
  424.  
  425. generic:    unzips       # first try if unknown
  426.  
  427. generic2:    unix_make  # second try if unknown:  hope make is called "make"
  428.     make -f unix/Makefile unzips CF="$(CF) -DBSD"
  429.  
  430. generic3:    unix_make  # third try if unknown:  hope make is called "make"
  431.     make -f unix/Makefile unzips CF="$(CF) -DSYSV"
  432.  
  433. #----------------------------------------------------------------------------
  434. #  "Normal" group (BSD vs. SysV may be set in unzip.h via predefined macros):
  435. #----------------------------------------------------------------------------
  436.  
  437. 386i:        unzips    # sun386i, SunOS 4.0.2
  438. 3Bx:        unzips    # AT&T 3B2/1000-80; should work on any WE32XXX machine
  439. #aix_rt:        unzips    # IBM RT 6150 under AIX 2.2.1
  440. apollo:        unzips    # Apollo Domain/OS machines
  441. bull:        unzips    # Bull DPX/2, BOS 2.00.45 (doesn't require -Xk switch)
  442. convex:        unzips    # Convex C-120 and C-210 (-O is enough; -ext is default)
  443. cray:        unzips    # Cray-2 and Y-MP, using default (possibly old) compiler
  444. dec:        unzips    # DEC 5820 (MIPS RISC), test version of Ultrix v4.0
  445. encore:        unzips    # Multimax
  446. eta:        unzips    # ETA-10P*, hybrid SysV with BSD 4.3 enhancements
  447. gould:        unzips    # Gould PN9000 running UTX/32 2.1Bu01
  448. hp:        unzips    # HP 9000 series (68020), 4.3BSD or HP-UX A.B3.10 Ver D
  449. hpux:        unzips    # (to match zip's makefile entry)
  450. mips:        unzips    # MIPS M120-5(?), SysV.3 [error in sys/param.h file?]
  451. next10:        unzips    # NeXT (generic; use next2x or next3x for better opt.)
  452. osf1:        unzips    # DECstation, including Alpha-based; DEC OSF/1 v1.x
  453. pyr_:        unzips    # [failsafe target for pyramid target below]
  454. pyr_ucb:    unzips    # Pyramids running BSD universe by default (see below)
  455. realix:        unzips    # Modcomp Real/IX (SysV.3); note "gcc" = GLS C, not GNU
  456. sco:        unzips    # Xenix/386 (tested on 2.3.1); SCO Unix 3.2.0.
  457. sgi:        unzips    # Silicon Graphics; Irix 3.3.2, 4.0.x, 5.2, etc.
  458. stellar:    unzips    # gs-2000
  459. sun:        unzips    # old target; no good with solaris...use "sunos" now
  460. sunos:        unzips    # Sun 3, 4; SunOS 4.x (SOME SYSTEMS ARE SYSTEM V!)
  461. tahoe:        unzips    # tahoe (CCI Power6/32), 4.3BSD
  462. ultrix:        unzips    # VAXen, DEC 58x0 (MIPS guts), DECstation 2100; v4.x
  463. vax:        unzips    # general-purpose VAX target (not counting VMS)
  464.  
  465. #----------------------------------------------------------------------------
  466. #  BSD group (for timezone structs [struct timeb]):
  467. #----------------------------------------------------------------------------
  468.  
  469. bsd:        _bsd    # generic BSD (BSD 4.2 & Ultrix handled in unzip.h)
  470. bsd386:        _bsd    # BSDI BSD/386 version 1.0
  471.  
  472. _bsd:        unix_make
  473.     $(MAKE) unzips CF="$(CF) -DBSD"
  474.  
  475. #----------------------------------------------------------------------------
  476. #  SysV group (for extern long timezone and ioctl.h instead of sgtty.h):
  477. #----------------------------------------------------------------------------
  478.  
  479. aix_rt:        _sysv    # IBM RT 6150 under AIX 2.2.1
  480. amdahl:        _sysv    # Amdahl (IBM) mainframe, UTS (SysV) 1.2.4 and 2.0.1
  481. aviion:        _sysv    # Data General AViiONs, DG/UX 4.3x
  482. pyr_att:    _sysv    # Pyramids running AT&T (SysV) universe by default
  483. solaris:    _sysv    # Sun SPARC & x86, Solaris 2.x
  484. stardent:    _sysv    # Stardent ...
  485. sysv:        _sysv    # generic System V Unix (Xenix handled in unzip.h)
  486. xos:        _sysv    # Olivetti LSX-3005..3045, X/OS 2.3 and 2.4
  487.  
  488. _sysv:        unix_make
  489.     $(MAKE) unzips CF="$(CF) -DSYSV"
  490.  
  491. #----------------------------------------------------------------------------
  492. #  Version 7 group (old/obsolescent):
  493. #----------------------------------------------------------------------------
  494.  
  495. pixel:        _v7    # Pixel 80, 100 (68000-based, V7/mostly BSD4.1 compat.)
  496. v7:        _v7    # generic Unix Version 7 box (prob. only Pixel...)
  497.  
  498. _v7:
  499.     make -f unix/Makefile unzips \
  500.      CF="$(CF) -DV7 -DNO_PARAM_H -DSHORT_NAMES -DBSD -DZMEM"
  501.  
  502. #----------------------------------------------------------------------------
  503. #  "Unique" group (require non-standard options):
  504. #----------------------------------------------------------------------------
  505.  
  506. # AT&T 7300 (M68000/SysV.3) (add -DSYSV? -DNO_LIMITS?)
  507. 7300:        unix_make
  508.     $(MAKE) unzips CF="$(CF) -DNO_DIR -DNO_MKDIR -DNO_STRNICMP"
  509.  
  510. 7300_gcc:    unix_make
  511.     $(MAKE) unzips CC=gcc LD=gcc LF2="" \
  512.      CF="-O2 -I. -DNO_DIR -DNO_MKDIR -DNO_STDLIB_H -DNO_STRNICMP $(LOC)"
  513.     $(STRIP) $(UNZIPS)
  514.  
  515. # IBM AIX 3.x on an RS/6000:  see rs6000 target below
  516. aix:        rs6000
  517.  
  518. # Amdahl UTS 2.1.4 with "extended file types" filesystem (aarrrggghhhh...)
  519. amdahl_eft:    unix_make
  520.     $(MAKE) unzips CF="$(CF) -eft -DSYSV"
  521.  
  522. # MS-DOS:  Borland C++ 3.0 (can change UnZip memory model to small for more
  523. # speed but no ZipInfo support [-ml -> -ms in _bcc_dos], but may run out of
  524. # memory when inflating--should not be true anymore in 5.11)
  525. bcc_dos:    _bcc_dos fu_bcc sfx_bcc
  526.  
  527. _bcc_dos:    bcc_rsp        #  v-- change to -ml for large model
  528.     $(MAKE) unzip.exe CF="-w -ms -O2 -I. $(LOC)" CC=bcc LD=bcc E=.exe\
  529.      O=.obj M=msdos LOBJS="" LF="@bcc_rsp" LF2=""
  530.     del bcc_rsp
  531.  
  532. bcc_rsp:
  533.     echo $(OBJS1:.o=.obj) > bcc_rsp
  534.     echo msdos.obj $(OBJS2:.o=.obj) >> bcc_rsp
  535.  
  536. fu_bcc:
  537.     $(MAKE) funzip.exe CF="-w -ms -O2 -I. $(LOC)" CC=bcc LD=bcc E=.exe\
  538.      O=.obj FL="" FL2="" CP=copy RM=del
  539.  
  540. sfx_bcc:
  541.     $(MAKE) unzipsfx.exe CF="-w -ms -O2 -I. $(LOC)" CC=bcc LD=bcc E=.exe\
  542.      O=.obj SL="" SL2="" CP=copy RM=del
  543.  
  544. # Coherent 3.x/4.x, Mark Williams C.  ``For Coherent's CC, it needs either
  545. # -T0 or -T150000 (or bigger) added to the CFLAGS, otherwise the compiler
  546. # runs out of memory and dies in zipinfo.c.'' [Fred "Fredex" Smith, 940719]
  547. coherent:    unix_make
  548.     $(MAKE) unzips CF="$(CF) -T0"
  549.  
  550. # Cray-2, Y-MP or C90, running Unicos 5.x to 8.x (SysV + BSD enhancements)
  551. # and Standard (ANSI) C compiler 3.0 or later.
  552. cray_opt:    unix_make
  553.     $(MAKE) unzips CF="$(CF) -h scalar3 -h vector3"
  554.  
  555. # The unzip41 build on a Cyber 910/SGI running Irix v3.3.3 was successful
  556. # with the following change to Makefile:
  557. cyber_sgi:    unix_make
  558.     $(MAKE) unzips CF="$(CF) -I/usr/include/bsd"\
  559.      LF="-lbsd $(LF)" SL="-lbsd $(SL)"
  560.  
  561. # 680x0, DIAB dnix 5.2/5.3 (a Swedish System V clone)
  562. #
  563. # Options for the dnix cc:
  564. #  -X7 = cc is strict ANSI C
  565. #  -X9 = warnings if a function is used without a declaration
  566. #
  567. dnix:        unix_make
  568.     $(MAKE) unzips CF="$(CF) -X7 -X9 -DDNIX"
  569.  
  570. # Generic BSDish Unix gcc.  ``The -O2 only works with the latest version of
  571. # gcc; you may have to use -O only for earlier versions.  I have no idea why
  572. # -s causes this bug in gcc.''  [Bug:  "nm: unzip: no name list", "collect:
  573. # /usr/bin/nm returned 1 exit status".]  If you don't have strip, don't
  574. # worry about it (it just makes the executable smaller and can be replaced
  575. # with "echo" instead).
  576. #
  577. gcc:        unix_make
  578.     $(MAKE) unzips CC=gcc LD=gcc CF="-O2 -I. $(LOC)" LF2=""
  579.     $(STRIP) $(UNZIPS)
  580.  
  581. # MS-DOS with D.J. Delorie's djgpp 1.12.  Note that earlier versions of go32
  582. # (< 1.11) don't support DOS function 0x38 (necessary for "unzip -v foobar").
  583. # Note also that this set of targets has work-arounds for three bugs in the
  584. # older version (3.69) of GNU make formerly distributed with djgpp:  (1) it
  585. # sets the MAKE variable incorrectly for spawning with COMMAND.COM (forward
  586. # slashes instead of backslashes--fixed in 3.71 by not spawning COMMAND.COM),
  587. # so the usual $(MAKE) has been replaced by "make"; (2) it doesn't handle
  588. # makefile continuation lines correctly, most likely because of the MS-DOS
  589. # CR-LF line-endings (seems to be fixed in 3.71?), so long lines are used;
  590. # and (3) it doesn't handle quotes as in CF="-O2 -Wall etc." correctly, so
  591. # these macros have been changed to "CF=-O2 -Wall etc." where necessary.
  592. # The newer GNU make (version 3.71) does not handle quotes correctly, but
  593. # prepending "command /c" to each make line is reported by E-Yen Tan
  594. # <e-yen.tan@brasenose.oxford.ac.uk> to be a successful work-around.  The
  595. # emx version of GNU make 3.71 which is maintained by Kai Uwe Rommel has
  596. # other fatal bugs involving the shell (necessary for recursive targets
  597. # like this one).  GRR 940430, 940723, 940814, 951230
  598. #
  599. djgpp1:        _gcc_dos1 fu_gcc1 sfx_gcc1    # djgpp v1.x with GO32 extender
  600. gcc_dos1:    _gcc_dos1 fu_gcc1 sfx_gcc1    # djgpp v1.x with GO32 extender
  601.  
  602. _gcc_dos1: gcc_rsp
  603. # this line works with GNU make 3.69:
  604. #    make unzip CC=gcc LD=gcc M=msdos "CF=-O2 -Wall -I. $(LOC)" LOBJS="" "LF=-o unzip @gcc_rsp" LF2=""
  605. #
  606. # this line should work with GNU make 3.71:
  607.     command /c make unzip CC=gcc LD=gcc M=msdos "CF=-O2 -Wall -I. $(LOC)" LOBJS="" "LF=-o unzip @gcc_rsp" LF2=""
  608. #
  609. # these lines don't work at all, to our knowledge:
  610. #    $(MAKE) unzip CC=gcc LD=gcc M=msdos "CF=-O2 -Wall -I. $(LOC)"\
  611. #     LOBJS="" LF="-o unzip @gcc_rsp" LF2=""
  612. #
  613.     $(STRIP) unzip
  614.     coff2exe unzip
  615. #    use this instead if you want to create a stand-alone executable (bigger;
  616. #    may require full path to go32.exe):
  617. #    coff2exe -s go32.exe unzip
  618.     stubedit unzip.exe globbing=no
  619.     del gcc_rsp
  620.     del unzip
  621. #
  622.     coff2exe -g zipinfo
  623.     stubedit zipinfo.exe runfile=unzip.exe globbing=no
  624.     del zipinfo
  625.  
  626. fu_gcc1:
  627. # this line works with GNU make 3.69:
  628. #    make funzip CC=gcc LD=gcc "CF=-Wall -O2 -I. $(LOC)" FL2="" CP=copy RM=del
  629. #
  630. # this line should work with GNU make 3.71:
  631.     command /c make funzip CC=gcc LD=gcc "CF=-Wall -O2 -I. $(LOC)" FL2="" CP=copy RM=del
  632. #
  633. # these lines don't work at all, to our knowledge:
  634. #    $(MAKE) funzip CC=gcc LD=gcc "CF=-Wall -O2 -I. $(LOC)" FL2=""\
  635. #     CP=copy RM=del
  636. #
  637.     $(STRIP) funzip
  638.     coff2exe funzip
  639. #    use this instead if you want to create a stand-alone executable (bigger;
  640. #    may require full path to go32.exe):
  641. #    coff2exe -s go32.exe funzip
  642.     del funzip
  643.  
  644. sfx_gcc1:
  645. # this line works with GNU make 3.69:
  646. #    make unzipsfx CC=gcc LD=gcc M=msdos "CF=-Wall -O2 -I. $(LOC)" SL2="" CP=copy RM=del
  647. #
  648. # this line should work with GNU make 3.71:
  649.     command /c make unzipsfx CC=gcc LD=gcc M=msdos "CF=-Wall -O2 -I. $(LOC)" SL2="" CP=copy RM=del
  650. #
  651. # these lines don't work at all, to our knowledge:
  652. #    $(MAKE) unzipsfx CC=gcc LD=gcc M=msdos "CF=-Wall -O2 -I. $(LOC)"\
  653. #     SL2="" CP=copy RM=del
  654. #
  655.     $(STRIP) unzipsfx
  656.     coff2exe unzipsfx
  657. #    use this instead if you want to create a stand-alone executable (bigger;
  658. #    may require full path to go32.exe):
  659. #    coff2exe -s go32.exe unzipsfx
  660.     stubedit unzipsfx.exe globbing=no
  661.     del unzipsfx
  662.  
  663. gcc_rsp:
  664.     echo $(OBJS1) > gcc_rsp
  665.     echo $(OBJS2) msdos.o >> gcc_rsp
  666.  
  667. # MS-DOS with D.J. Delorie's djgpp 2.0.  See above for comments about make
  668. # utilities (may or may not still be relevant).  All executables are now
  669. # stand-alone, but can provide Charles W. Sandmann's (alternate?) DPMI server
  670. # if needed via "stubedit unzip.exe dpmi=cwsdpmi.exe" (for example).  950816
  671.  
  672. djgpp:        _gcc_dos fu_gcc sfx_gcc        # djgpp v2.x
  673. djgpp2:        _gcc_dos fu_gcc sfx_gcc        # djgpp v2.x
  674. gcc_dos:    _gcc_dos fu_gcc sfx_gcc        # djgpp v2.x
  675.  
  676. _gcc_dos: gcc_rsp
  677.     make unzip CC=gcc LD=gcc M=msdos "CF=-O2 -Wall -I. $(LOC)" LOBJS="" "LF=-o unzip @gcc_rsp" LF2=""
  678. #    $(MAKE) unzip CC=gcc LD=gcc M=msdos "CF=-O2 -Wall -I. $(LOC)"\
  679. #     LOBJS="" LF="-o unzip @gcc_rsp" LF2=""
  680.     $(STRIP) unzip
  681.     stubify unzip
  682.     del gcc_rsp
  683.     del unzip
  684.     stubify -g zipinfo.exe
  685.     stubedit zipinfo.exe runfile=unzip argv0=zipinfo
  686.  
  687. fu_gcc:
  688.     make funzip CC=gcc LD=gcc "CF=-Wall -O2 -I. $(LOC)" FL2="" CP=copy RM=del
  689. #    $(MAKE) funzip CC=gcc LD=gcc "CF=-Wall -O2 -I. $(LOC)" FL2=""\
  690. #     CP=copy RM=del
  691.     $(STRIP) funzip
  692.     stubify funzip
  693.     del funzip
  694.  
  695. sfx_gcc:
  696.     make unzipsfx CC=gcc LD=gcc M=msdos "CF=-Wall -O2 -I. $(LOC)" SL2="" CP=copy RM=del
  697. #    $(MAKE) unzipsfx CC=gcc LD=gcc M=msdos "CF=-Wall -O2 -I. $(LOC)"\
  698. #     SL2="" CP=copy RM=del
  699.     $(STRIP) unzipsfx
  700.     stubify unzipsfx
  701.     del unzipsfx
  702.  
  703. # Heurikon HK68 (68010), UniPlus+ System V 5.0, Green Hills C-68000
  704. hk68:        unix_make
  705.     $(MAKE) unzips CC="gcc" LD="gcc"\
  706.      LF="-n $(LF)" SL="-n $(SL)" FL="-n $(FL)"\
  707.      CF="-ga -X138 -I. $(LOC) -Dlocaltime=localti -Dtimezone=timezon"
  708.  
  709. # Linux (Posix, approximately SysV):  virtually any version since before 0.96.
  710. linux:        unix_make
  711.     $(MAKE) unzips CC=gcc LD=gcc
  712.  
  713. # Linux host with go32 (djgpp) cross-compiler (go32crs.tgz) for 32-bit DOS.
  714. # Change msdos_$O target (near line 303 above) from msdos\msdos to msdos/msdos.
  715. linux_dos:    unix_make
  716.     $(MAKE) unzips CC=go32gcc LD=go32gcc M=msdos CF="-Wall -O2 -I. $(LOC)"
  717. #    go32-strip unzip
  718. #    Due to limitations of the cross-compiling package, this has to be
  719. #    done manually:
  720.     @echo Copy $(UNZIPS) to your DOS partition and use coff2exe.
  721.  
  722. # Linux ELF shared library (ooo, it's so easy).  This is a test target for
  723. # now, and it only makes the UnZip/ZipInfo stuff (not fUnZip or UnZipSFX).
  724. # Do "make clean" before using this target the first time, eh?  The version
  725. # number may change to match the UnZip version.  Or not.  Whatever.  Also
  726. # do "setenv LD_LIBRARY_PATH `pwd`" or similar to test the DLL in place
  727. # (with unzip, which is now the version linked with the shared library).
  728. #
  729. linux_shlib:    unix_make
  730.     $(MAKE) objsdll CC=gcc CF="$(CF) -DDLL -fPIC"
  731.     gcc -shared -Wl,-soname,libunzip.so.0 -o libunzip.so.0.2 $(OBJSDLL)
  732.     ln -sf libunzip.so.0.2 libunzip.so.0
  733.     gcc -c -O unzipstb.c
  734.     gcc -o unzip unzipstb.o -L. -lunzip
  735.  
  736. # Linux ELF shared library, as above, but using inflate() from zlib (libz.so)
  737. # instead of the original UnZip version.  (libz was libgz prior to 0.94)
  738. linux_shlibz:    unix_make
  739.     $(MAKE) objsdll CC=gcc CF="$(CF) -DDLL -DUSE_ZLIB -fPIC"
  740.     gcc -shared -Wl,-soname,libunzip.so.0 -o libunzip.so.0.2 $(OBJSDLL)
  741.     ln -sf libunzip.so.0.2 libunzip.so.0
  742.     gcc -c -O unzipstb.c
  743.     gcc -o unzip unzipstb.o -L. -lunzip -lz
  744.  
  745. # Minix 1.5 PC for the 386.  Invoke as is to use default cc, or as "make
  746. # minix CC=gcc" to use gcc.  Try "make linux" if you have a working termios.h.
  747. minix:        unix_make
  748.     $(MAKE) unzips CF="$(CF) -DMINIX -DSHORT_NAMES" CC=$(CC) LD=$(CC)
  749.  
  750. # MS-DOS:  Microsoft C 6.0 and NMAKE.  "nmake msc_dos" works fine, aside
  751. # from an irrelevant message (possibly) about the creation of a temporary
  752. # file.  Environment variable LOCAL_UNZIP (or CL) should be set via "SET
  753. # LOCAL_UNZIP=-FPi87" if you use the 80x87 library; also add -G2 or -G3 if
  754. # using a 286/386/486.  Note that setting too many things via LOCAL_UNZIP
  755. # may make the command line too long for the default COMMAND.COM shell, so
  756. # use CL instead in that case.  With VC++ Pro, -O2 instead of -Oait seems to
  757. # work OK and makes the executables slightly faster.  Use at your own risk.
  758. #
  759. msc_dos:    _msc_dos fu_msc sfx_msc
  760.  
  761. # can change UnZip memory model (-AS) to large (-AL) if necessary, but should
  762. # no longer be necessary in UnZip 5.11 and later
  763. _msc_dos:    msc_rsp
  764.     $(MAKE) unzip.exe CF="-AS -W3 -Oait -Gs -nologo -I. $(LOC)" CC=cl\
  765.      LD=link E=.exe O=.obj M=msdos LOBJS="" LF="@msc_rsp" LF2=""
  766.     del msc_rsp
  767.  
  768. msc_rsp:
  769.     echo $(OBJS1:.o=.obj) + > msc_rsp
  770.     echo msdos.obj $(OBJS2:.o=.obj)/noi/e/st:0x0c00; >> msc_rsp
  771.  
  772. fu_msc:
  773.     set CL=-AS -Oait -Gs -nologo -I.
  774.     $(MAKE) funzip.exe CF="$(LOC)" CC=cl LD=link E=.exe O=.obj\
  775.      FL="/noi/nol/e" FL2=",funzip;" RM=del CP=copy
  776.  
  777. sfx_msc:
  778.     set CL=-AS -Oait -Gs -nologo -I.
  779.     $(MAKE) unzipsfx.exe CF="$(LOC)" CC=cl LD=link E=.exe O=.obj M=msdos\
  780.      SL="/noi/nol/e" SL2=",unzipsfx;" RM=del CP=copy
  781.  
  782. # $(NOD):  intended to be used as   SET NOD=-link /nod:slibcep   to allow the
  783. #          use of default library names (slibce.lib) instead of protected-mode
  784. #          names (slibcep.lib), but it fails:  MSC adds its own /nod qualifier,
  785. #          and there seems to be no way to override this.  Typical...
  786. #
  787. #    THIS TARGET RETAINED AS AN EXAMPLE ONLY.  USE MAKEFILE.OS2.
  788. #
  789. #msc_os2:        # 16-bit OS/2 (1.x) with MSC 6.00 (use makefile.os2)
  790. #    $(MAKE) -nologo unzips CC=cl LD=cl E=.exe O=.obj\
  791. #     OBJS="$(OBJS_OS2)" OBJZ="$(OBJZ_OS2)"\
  792. #     CF="-nologo -AC -Ocegit -G2s -DOS2 -DMSC $(LOC)"\
  793. #     LF="-nologo -AC $(LOC) -Lp -F 2000"\
  794. #     LF2="unzip.def -o unzip.exe $(NOD)" CP=copy RM=del\
  795. #     ZL="-nologo -AC $(LOC) -Lp -Fb" ZL2="zipinfo.def -o zipinfo.exe"
  796.  
  797. # NeXT info.
  798. next:
  799.     @echo
  800.     @echo\
  801.  '  Please pick a specific NeXT target:  "make next10" will create a generic'
  802.     @echo\
  803.  '  NeXT executable; "make next2x" will create a smaller executable (for'
  804.     @echo\
  805.  '  NeXTstep 2.0 and higher); "make next3x" will create a small executable'
  806.     @echo\
  807.  '  with significantly better optimization (NeXTstep 3.0 and higher only);'
  808.     @echo\
  809.  '  "make nextfat" will create a fat, multi-architecture (NeXT plus Intel)'
  810.     @echo\
  811.  '  executable (NeXTstep 3.1 and higher only).'
  812.     @echo
  813.  
  814. # 68030 BSD 4.3+Mach.  NeXT 2.x: make the executable smaller.
  815. next2x:        unix_make
  816.     $(MAKE) unzips LF2="-object -s"
  817.  
  818. # NeXT 3.x: as above, plus better optimization.
  819. next3x:        unix_make
  820.     $(MAKE) unzips CF="-O2 -I. $(LOC)" LF2="-object -s"
  821.  
  822. # NeXT 3.1+: make the executable fat (multi-architecture binary [MAB],
  823. # for "black" [NeXT] and "white" [x86] hardware, so far).
  824. nextfat:    unix_make
  825.     $(MAKE) unzips CF="-O2 -I. $(LOC) -arch i386 -arch m68k" \
  826.      LF2="-arch i386 -arch m68k -object -s"
  827.  
  828. # Sequent Symmetry running Dynix/ptx (sort of SysV.3):  needs to link
  829. # with libseq to get symlink().
  830. ptx:        unix_make
  831.     $(MAKE) unzips CF="$(CF) -DSYSV -DTERMIO -DPTX" LF2="$(LF2) -lseq"
  832.  
  833. # Pyramid 90X (probably all) under >= OSx4.1, either universe.  (This is an
  834. # experimental target!  If it fails, use either pyr_ucb or pyr_att instead.)
  835. # The make in the BSD half is too stupid to understand $(MAKE), sigh...
  836. pyramid:    unix_make
  837.     -make -f unix/Makefile pyr_`universe`
  838.  
  839. # REGULUS:  68040-based, "real-time" SysV.3 mutant; uses gcc, with "REGULUS"
  840. # predefined.
  841. regulus:    unix_make
  842.     $(MAKE) unzips CF="$(CF) -traditional -DSYSV -DNO_MKDIR"
  843.  
  844. # IBM RS/6000 under AIX 3.2
  845. rs6000:        unix_make
  846.     $(MAKE) unzips CF="$(CF) -DBSD -D_BSD -DUNIX" LF2="-lbsd"
  847.  
  848. # SCO cross compile from Unix to DOS. Tested with Xenix/386 and OpenDeskTop.
  849. # Should work with Xenix/286 as well. (davidsen)  Note that you *must* remove
  850. # the Unix objects and executable before doing this!  (Piet Plomp:  gcc won't
  851. # recognize the -M0 flag which forces 8086 code.)  (GRR:  may need to reduce
  852. # stack to 0c00h if using 286/small-model code...?)
  853. sco_dos:    unix_make
  854.     $(MAKE) unzips CF="-O -I. $(LOC) -dos -M0" M=msdos\
  855.      LF="-dos -F 2000" LF2="-o unzip.exe"\
  856.      FL="-dos" FL2="-o funzip.exe" SL="-dos" SL2="-o unzipsfx.exe"
  857.  
  858. # SCO UNIX with shared libraries and no international support.  If you are
  859. # not using a USA-style keyboard and display, you may want to remove -nointl
  860. # to get support.  It adds quite a bit to the size of the executable.
  861. sco_sl:        unix_make
  862.     $(MAKE) unzips LF="$(LF) -nointl" LF2="$(LF2) -lc_s"\
  863.      SL="$(SL) -nointl" FL="$(FL) -nointl"
  864.  
  865. # SCO Xenix/286 2.3.3 with 2.2.1 development system
  866. sco_x286:    unix_make
  867.     $(MAKE) unzips CF="$(CF) -Mel2 -LARGE -DTERMIO" LF="$(LF) -Mel2 -LARGE"
  868.  
  869. # Sequent Symmetry with Dynix.  (386, but needs -DZMEM)
  870. # This should also work on Balance but I can't test it just yet.
  871. sequent:    unix_make
  872.     $(MAKE) unzips CF="$(CF) -DBSD -DZMEM"
  873.  
  874. # Generic System V + GNU C
  875. sysv_gcc:    unix_make
  876.     $(MAKE) unzips CC=gcc LD=gcc CF="-O2 -I. -DSYSV $(LOC)" LF2=""
  877.     $(STRIP) $(UNZIPS)
  878.  
  879. # AT&T 6300+, System V.2 Unix:  run-time out-of-memory error if don't use -Ml;
  880. # also compile-time error if work arrays dimensioned at HSIZE+2 (>32K)
  881. sysv6300:    unix_make
  882.     $(MAKE) unzips CF="$(CF) -Ml -DSYSV" LF="$(LF) -Ml"\
  883.      SL="$(SL) -Ml" FL="$(FL) -Ml"
  884.  
  885. # Texas Instruments System V.3 (running on HP 9000-1500)
  886. ti_sysv:    unix_make
  887.     $(MAKE) unzips CF="$(CF) -DSYSV -DNO_UID_GID -DUID_USHORT"
  888.  
  889. # SCO Xenix (Joe Foster 950508:  "unzip needs to be linked with -lx [for the
  890. # opendir(), readdir(), telldir(), rewinddir(), and closedir() calls]")
  891. xenix:         unix_make
  892.     $(MAKE) unzips LF2="$(LF2) -lx"
  893.  
  894. # Wombat 68000 (or whatever).
  895. # I didn't do this.  I swear.  No, really.
  896. wombat:        unix_make
  897.     @echo
  898.     @echo  '    Ha ha!  Just kidding.'
  899.     @echo
  900.