home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / unzip.tar.gz / unzip.tar / unzip / MSDOS.arc / MAKEFILE.DOS next >
Text File  |  1990-12-04  |  3KB  |  107 lines

  1. #  Makefile.DOS    Makefile for UnZip 4.0, using Microsoft C Compiler 5.0
  2. #                  and Microsoft MAKE 4.02 (or later versions).  Users of
  3. #                  MSC 6.0 and NMAKE can use the regular makefile by typing
  4. #                  "nmake msc_dos".]
  5. #
  6. #                  Works just fine as it stands for Turbo C v2.0.
  7. #                  You'll have to uncomment and/or edit for Include
  8. #                  and Library paths.
  9. #
  10. #  Notes:  (1) Uncomment the appropriate compiler/OS options below.
  11. #          (2) Change the various CFLAGS as appropriate for your environment
  12. #              and libraries.
  13. #              For MSC:  -AS specifies small-model library; -FPi87
  14. #              specifies inline 80x87 support (there is no floating-point
  15. #              math in unzip, but that's my default library); and -G2 enables
  16. #              80286 instructions.  QuickC uses the medium memory model, as
  17. #              I recall (-AM and/or -qc).
  18. #              The "ALL:" target is used by MSC 6.0 with old MAKE; thanks to 
  19. #              Bo Kullmar for that fix.
  20. #          (3) Rename this file to "unzip" on a DOS system; typing "make
  21. #              unzip" with MSC (or "make -funzip" with TC) then builds
  22. #              unzip.exe.
  23. #
  24. #  Greg Roelofs
  25. #  roelofs@amelia.nas.nasa.gov
  26. #
  27.  
  28. #####################
  29. # MACRO DEFINITIONS #
  30. #####################
  31.  
  32. # Turbo C 2.0 for MS-DOS:
  33. # ----------------------
  34. # tcc is usually configured with -I and -L set appropriately...
  35. CC = tcc
  36. CFLAGS = -ms -O -Z
  37. INCL = #-Ic:\turboc\include
  38. LD = tcc
  39. LDFLAGS = -ms #-Lc:\turboc\lib
  40. LDFLAGS2 =
  41.  
  42. # MSC for MS-DOS:
  43. # --------------
  44. # CC = cl
  45. # CFLAGS = -AS -Ox -G2 -FPi87    # change to -FPi if coprocessor not installed
  46. # INCL =
  47. # LD = link
  48. # LDFLAGS = /NOI
  49. # LDFLAGS2 = ,$*;
  50.  
  51. # MSC with SDK for OS/2:
  52. # ---------------------
  53. # CC = cl
  54. # CFLAGS = -AS -Ox -G2 -DOS2
  55. # INCL = -Ic:\m5\include         # for example
  56. # LD = link
  57. # LDFLAGS = /NOI
  58. # RM = del
  59. # LIBC = c:\m5\lib\p\slibce
  60. # LIBD = c:\m5\lib\doscalls.lib
  61. # LIBA = c:\m5\lib\api.lib
  62.  
  63. OBJS = unzip.obj file_io.obj mapname.obj match.obj misc.obj\
  64.        unimplod.obj unreduce.obj unshrink.obj
  65.  
  66.  
  67. ###############################################
  68. # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
  69. ###############################################
  70.  
  71. ALL    : unzip.exe
  72.  
  73. .c.obj:
  74.         $(CC) -c $(CFLAGS) $(INCL) $*.c
  75.  
  76. unzip.obj:      unzip.c unzip.h
  77.  
  78. file_io.obj:    file_io.c unzip.h
  79.  
  80. mapname.obj:    mapname.c unzip.h
  81.  
  82. match.obj:      match.c unzip.h
  83.  
  84. misc.obj:       misc.c unzip.h
  85.  
  86. unimplod.obj:   unimplod.c unzip.h
  87.  
  88. unreduce.obj:   unreduce.c unzip.h
  89.  
  90. unshrink.obj:   unshrink.c unzip.h
  91.  
  92. # DOS:
  93. # ---
  94. unzip.exe:     $(OBJS)
  95.         $(LD) $(LDFLAGS) $(OBJS) $(LDFLAGS2)
  96.  
  97. # OS/2:
  98. # ----
  99. # unziptmp.exe:  $(OBJS)
  100. #         $(LD) $(LDFLAGS) $(OBJS), $*.exe,,$(LIBC)+$(LIBD);
  101. #
  102. # unzip.exe:     unziptmp.exe
  103. #         bind unziptmp.exe $(LIBD) $(LIBA) -o unzip.exe
  104. #         $(RM) unziptmp.exe
  105. #         $(RM) *.obj
  106. #         $(RM) *.map
  107.