home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / CONTRIB / MBASE / MBASE50.TAR / mbase / src / makefile.dos < prev    next >
Encoding:
Makefile  |  1992-10-06  |  3.8 KB  |  108 lines

  1. #
  2. #  METALBASE 5.0
  3. #
  4. #  Released October 1st, 1992 by Huan-Ti [ richid@owlnet.rice.edu ]
  5. #                                        [ t-richj@microsoft.com ]
  6. #
  7. #  Microsoft C6 makefile (for use with NMAKE) for 5.0 library and utilities
  8. #
  9. ###############################################################################
  10. #
  11. # CFLAGS=
  12. #    -DSTRUCT_1      -- Read lower for an explanation of these, and how to
  13. #    -DSTRUCT_2      --    determine which is appropriate for your system.
  14. #    -DSTRUCT_3
  15. #    -DSTRUCT_4
  16. #    -DLONGARGS      -- To produce ansi-style prototypes ("void fn(int)")
  17. #    -DNOVOIDPTR     -- To use char* instead of void* (automatic for COHERENT)
  18. #    -DNOENCRYPT     -- To remove encryption crap from library and utilities
  19. #    -DNEED_USHORT   -- If your compiler doesn't have ushort yet (COH again)
  20. #    -DNEED_ULONG    -- If your compiler doesn't have ulong yet (most don't)
  21. #    -DUNIX_LOCKS    -- To enable Unix-style locking
  22. #    -DSIG_TYPE=void -- void or int; needed only if you define UNIX_LOCKS
  23. #    -DVI_EMU        -- To add vi emulation to input.c
  24. #    -DMSDOS         -- MS-DOS users should define this if their CC doesn't.
  25. #
  26. # LDOPTS=-f          -- To include floating point stuff for printf()
  27. #
  28. ###############################################################################
  29. #
  30. # All users: Update the flags just below here FIRST (don't worry about
  31. #            setting -DSTRUCT_?); then just type "make".  It will compile and
  32. #            run struct/struct.exe, which will tell you how to determine how
  33. #            -DSTRUCT_? should be set for your system.  Update this in the
  34. #            Makefile and type "make install".  You may delete struct/
  35. #            struct.exe after you've used it.
  36. #
  37. # DOS users: Try adding -DMSDOS to CFLAGS=; if you get a compiler error,
  38. #            take it back out.  The code expects MSDOS to be defined for all
  39. #            DOS compilers--most already set it, but some may not.
  40. #
  41. # NOTE: This makefile is set up to use \INCLUDE, \LIB and \UTIL... change the
  42. #       names in here or create those directories, as you see fit.
  43. #
  44. ###############################################################################
  45.  
  46. CFLAGS = -nologo -c -W3 -AL -DSTRUCT_4 -DNEED_USHORT -DNEED_ULONG
  47.  
  48. CC     = CL $(CFLAGS)
  49.  
  50. .C.OBJ:
  51.     $(CC) $*.c
  52.  
  53. ###############################################################################
  54.  
  55. struct.exe : struct.obj
  56.     @link /nologo struct.obj, struct.exe;
  57.     @.\struct
  58.     @echo Now update the Makefile and 'make install'
  59.  
  60. all : \INCLUDE\stdinc.h \INCLUDE\mbase.h blast.exe build.exe form.exe \
  61.       mbconv.exe report.exe vr.exe
  62.     
  63.  
  64. install : final
  65.     @echo MetalBase 5.0 has been installed.
  66.  
  67. ###############################################################################
  68.  
  69. \INCLUDE\mbase.h : mbase.h
  70.     copy mbase.h \INCLUDE
  71.  
  72. \INCLUDE\stdinc.h : stdinc.h
  73.     copy stdinc.h \INCLUDE
  74.  
  75. \LIB\mbase.lib : mbase.lib
  76.     copy mbase.lib \LIB
  77.  
  78. final : all
  79.     copy *.exe \UTIL
  80.  
  81. ###############################################################################
  82.  
  83. blast.exe   : blast.obj
  84.     link/nologo blast.obj, blast.exe;
  85.  
  86. build.exe   : build.obj \LIB\mbase.lib
  87.     link/nologo build.obj, build.exe,, mbase.lib;
  88.  
  89. form.exe    : form.obj form_wr.obj \LIB\mbase.lib
  90.     link/nologo form.obj form_wr.obj, form.exe,, mbase.lib;
  91.  
  92. mbconv.exe  : mbconv.obj \LIB\mbase.lib
  93.     link/nologo mbconv.obj, mbconv.exe,, mbase.lib;
  94.  
  95. report.exe  : report.obj \LIB\mbase.lib
  96.     link/nologo report.obj, report.exe,, mbase.lib;
  97.  
  98. vr.exe      : vr.obj \LIB\mbase.lib
  99.     link/nologo vr.obj, vr.exe,, mbase.lib lcurses.lib;
  100.  
  101. mbase.lib : entry.obj    lock.obj  input.obj mbase.obj parse.obj \
  102.             timedate.obj util1.obj util2.obj cache.obj cache.obj \
  103.         create.obj
  104.     lib mbase.lib -+entry.obj  -+parse.obj -+input.obj -+mbase.obj;
  105.     lib mbase.lib -+util1.obj  -+cache.obj -+util2.obj -+lock.obj;
  106.     lib mbase.lib -+create.obj -+timedate.obj;
  107.  
  108.