home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip532.zip / novell / makefile.wat
Makefile  |  1997-02-07  |  5KB  |  146 lines

  1. #------------------------------------------------------------------------------
  2. # Makefile for UnZip 5.3 and later                       Mark Wright and others
  3. # Version:  Watcom C                                                   6 Feb 97
  4. #------------------------------------------------------------------------------
  5.  
  6.  
  7. # WARNING:  this is a hacked-up version of an ancient (1993) makefile.  It will
  8. #   not work without modifications to the UnZip 5.3 sources.  This makefile is
  9. #   (for now) included only for completeness and as a starting point for a real
  10. #   Novell Netware NLM port.  (This makefile was intended for Netware 3.11.)
  11.  
  12.  
  13. # Commands to execute before making any target
  14. # Set environment variables for compiler
  15. .BEFORE
  16.     @set inc386=\watcom\novh
  17.     @set wcg386=\watcom\binp\wcl386.exe
  18.  
  19. # Macro definitions
  20. NLMNAME = unzip
  21. DESCRIPTION = unzip utility
  22. VERSION = 0.50
  23. COPYRIGHT = Copyright 1990-1997 Info-ZIP (Zip-Bugs@lists.wku.edu).
  24. SCREENNAME = Info-ZIP's UnZip Utility
  25. CLIBIMP = \watcom\novi\clib.imp
  26. OBJFILE = $NLMNAME.obj
  27. PRELUDE = \watcom\novi\prelude.obj
  28.  
  29. # Compile switches
  30. # d2    include full symbolic debugging information
  31. # 3s    generate 386 instructions, use stack-based argument-passing conventions
  32. # zdp   allows DS register to "peg" it to DGROUP
  33. # zq    "quiet" mode
  34. # NLM   produce Novell Loadable Module
  35. # DEBUG include debug info
  36.  
  37. # COMPILE = wcc386 /zq /d2 /3s /zdp /w4 /DNLM
  38. COMPILE = wcc386 /zq /d2 /3s /zdp /w4 /DNLM $(LOCAL_UNZIP)
  39. LINK = wlink
  40. DESTDIR = target
  41.  
  42. # All .obj files implicitly depend on .c files
  43. .c.obj :
  44.    @echo Compiling $[*.c
  45.    @$COMPILE $[*.c
  46.  
  47.  
  48. UNZIP_H = unzip.h unzpriv.h globals.h os2\os2cfg.h
  49.  
  50. crc32.obj:      crc32.c $(UNZIP_H) zip.h
  51. crctab.obj:     crctab.c $(UNZIP_H) zip.h
  52. crypt.obj:      crypt.c $(UNZIP_H) crypt.h ttyio.h zip.h
  53. envargs.obj:    envargs.c $(UNZIP_H)
  54. explode.obj:    explode.c $(UNZIP_H)
  55. extract.obj:    extract.c $(UNZIP_H) crypt.h
  56. fileio.obj:     fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
  57. globals.obj:    globals.c $(UNZIP_H)
  58. inflate.obj:    inflate.c inflate.h $(UNZIP_H)
  59. list.obj:       list.c $(UNZIP_H)
  60. match.obj:      match.c $(UNZIP_H)
  61. process.obj:    process.c $(UNZIP_H)
  62. ttyio.obj:      ttyio.c $(UNZIP_H) crypt.h ttyio.h zip.h
  63. unreduce.obj:   unreduce.c $(UNZIP_H)
  64. unshrink.obj:   unshrink.c $(UNZIP_H)
  65. unzip.obj:      unzip.c $(UNZIP_H) crypt.h version.h consts.h
  66. zipinfo.obj:    zipinfo.c $(UNZIP_H)
  67.  
  68. # individual dependencies and action rules:
  69. #crc_i86.obj:    msdos\crc_i86.asm
  70. #    $(AS) $(ASFLAGS) -D$(ASUNMODEL) msdos\crc_i86.asm, $@;
  71.  
  72. os2.obj:      os2\os2.c $(UNZIP_H)
  73.     $(CC) -c -A$(UNMODEL) $(CFLAGS) os2\os2.c
  74.  
  75.  
  76. OBJ01 = unzip.obj
  77. OBJ02 = crc32.obj
  78. OBJ03 = crctab.obj
  79. OBJ04 = crypt.obj
  80. OBJ05 = envargs.obj
  81. OBJ06 = explode.obj
  82. OBJ07 = extract.obj
  83. OBJ08 = fileio.obj
  84. OBJ09 = globals.obj
  85. OBJ10 = inflate.obj
  86. OBJ11 = list.obj
  87. OBJ12 = match.obj
  88. OBJ13 = process.obj
  89. OBJ14 = ttyio.obj
  90. OBJ15 = unreduce.obj
  91. OBJ16 = unshrink.obj
  92. OBJ17 = zipinfo.obj
  93. OBJ18 = os2.obj
  94. #OBJ19 = $(ASMOBJS)
  95. OBJS = $OBJFILE $OBJ01 $OBJ02 $OBJ03 $OBJ04 $OBJ05 $OBJ06 $OBJ07 $OBJ08 \
  96.     $OBJ09 $OBJ10 $OBJ11 $OBJ12 $OBJ13 $OBJ14 $OBJ15 $OBJ16 $OBJ17 \
  97.     $OBJ18
  98.  
  99.  
  100. # if .obj or .lnk files are modified, link new .nlm and maybe copy to DESTDIR
  101. $NLMNAME.nlm : $OBJS
  102.    @echo Linking...
  103.    @$LINK @$NLMNAME
  104. #   @echo Copying $[*.nlm to $DESTDIR
  105. #   @copy $NLMNAME.nlm $DESTDIR
  106.  
  107.  
  108. # if makefile is modified, create new linker option file
  109. $NLMNAME.lnk : $NLMNAME.mak
  110.    @echo FORMAT   NOVELL NLM    '$DESCRIPTION'     >$NLMNAME.lnk
  111.    @echo OPTION   THREADNAME    '$NLMNAME'    >>$NLMNAME.lnk
  112.    @echo OPTION   SCREENNAME '$SCREENNAME'    >>$NLMNAME.lnk
  113.    @echo NAME $NLMNAME                >>$NLMNAME.lnk
  114.    @echo OPTION   VERSION=$VERSION        >>$NLMNAME.lnk
  115.    @echo OPTION   COPYRIGHT '$COPYRIGHT'    >>$NLMNAME.lnk
  116.    @echo DEBUG    NOVELL                        >>$NLMNAME.lnk
  117.    @echo DEBUG    ALL                           >>$NLMNAME.lnk
  118.    @echo OPTION   NODEFAULTLIBS            >>$NLMNAME.lnk
  119.    @echo OPTION   DOSSEG            >>$NLMNAME.lnk
  120.    @echo OPTION   STACK=40000            >>$NLMNAME.lnk
  121.    @echo OPTION   CASEEXACT            >>$NLMNAME.lnk
  122.    @echo OPTION   PSEUDOPREEMPTION        >>$NLMNAME.lnk
  123.    @echo OPTION   MAP                >>$NLMNAME.lnk
  124.    @echo FILE $PRELUDE                >>$NLMNAME.lnk
  125.    @echo FILE $OBJFILE                >>$NLMNAME.lnk
  126.    @echo FILE $OBJ01                >>$NLMNAME.lnk
  127.    @echo FILE $OBJ02                >>$NLMNAME.lnk
  128.    @echo FILE $OBJ03                >>$NLMNAME.lnk
  129.    @echo FILE $OBJ04                >>$NLMNAME.lnk
  130.    @echo FILE $OBJ05                >>$NLMNAME.lnk
  131.    @echo FILE $OBJ06                >>$NLMNAME.lnk
  132.    @echo FILE $OBJ07                >>$NLMNAME.lnk
  133.    @echo FILE $OBJ08                >>$NLMNAME.lnk
  134.    @echo FILE $OBJ09                >>$NLMNAME.lnk
  135.    @echo FILE $OBJ10                >>$NLMNAME.lnk
  136.    @echo FILE $OBJ11                >>$NLMNAME.lnk
  137.    @echo FILE $OBJ12                >>$NLMNAME.lnk
  138.    @echo FILE $OBJ13                >>$NLMNAME.lnk
  139.    @echo FILE $OBJ14                >>$NLMNAME.lnk
  140.    @echo FILE $OBJ15                >>$NLMNAME.lnk
  141.    @echo FILE $OBJ16                >>$NLMNAME.lnk
  142.    @echo FILE $OBJ17                >>$NLMNAME.lnk
  143.    @echo FILE $OBJ18                >>$NLMNAME.lnk
  144.    @echo MODULE   clib                >>$NLMNAME.lnk
  145.    @echo IMPORT   @$CLIBIMP            >>$NLMNAME.lnk
  146.