home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / EUROSET.ZIP / MAKEFILE < prev   
Text File  |  1994-01-27  |  2KB  |  73 lines

  1. # Makefile
  2. #-----------------------------------------------------------------------------
  3. # Abstract:
  4. #    Folding library MIME encodings.
  5. #
  6. # Design:
  7. #    This Makefile will work under Unix, and with Borland's make. I haven't
  8. #    understood how I can get anything to work with Microsoft's make.
  9. #
  10. #    Assumes that some DOS utilities (i.e. make, pkzip, shar) are clever
  11. #    enough to understand Unix subdirectory separator (/).
  12. #
  13. #    To make the fold library on a particular platform, set/remove comments
  14. #    in the "customization section" below.  Also, edit the directories etc.
  15. #    so things install in the right places.
  16. #
  17. # Targets:
  18. #    - all     : build program
  19. #    - shar    : Unix shar archive (source distribution)
  20. #-----------------------------------------------------------------------------
  21.  
  22. #-----------------------------------------------------------------------------
  23. #                        START OF CUSTOMIZATION SECTION
  24. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  25.  
  26. # Borland C
  27. #CC    = bcc
  28. #CFLAGS    = -w-pia -w-def
  29. #LFLAGS    = -edemo
  30. #OBJ    = obj
  31. #OBJS    = demo.obj fold.obj
  32. #RM    = rm
  33. #EXES    = demo.exe
  34. #RMISC    =
  35.  
  36. # UNIX
  37. CC    = cc
  38. CFLAGS    =
  39. LFLAGS    = -o demo
  40. OBJ    = o
  41. OBJS    = demo.o fold.o
  42. RM    = \rm -f
  43. EXES    = demo
  44. RMISC    = *~
  45.  
  46. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  47. #                         END OF  CUSTOMIZATION SECTION
  48. #-----------------------------------------------------------------------------
  49.  
  50. .c.obj:
  51.     $(CC) -c $(CFLAGS) $<
  52.  
  53. all:        $(EXES)
  54.  
  55. $(EXES):    $(OBJS)
  56.     $(CC) $(LFLAGS) $(OBJS)
  57.  
  58. demo.$(OBJ):    demo.c fold.h
  59. fold.$(OBJ):    fold.c fold.h
  60.  
  61. #---( housekeeping )----------------------------------------------------------
  62.  
  63. clean:
  64.     $(RM) $(OBJS) $(EXES) fold.shr $(RMISC)
  65.  
  66. #Unix only
  67. shar:    AAREAD.ME Makefile demo.c fold.c fold.h iso8859-1.ps
  68.     $(RM) fold.shr
  69.     shar AAREAD.ME Makefile demo.c fold.c fold.h iso8859-1.ps > fold.shr
  70.  
  71. # EOF
  72.  
  73.