home *** CD-ROM | disk | FTP | other *** search
/ Multi-Lingual Rumplestilzkin / STORYROM.BIN / pc / makefile < prev    next >
Makefile  |  1994-06-02  |  3KB  |  138 lines

  1. ########################################################################
  2. #                          Macromedia FileIO Makefile
  3. #                                       
  4. #                        (c) Copyright 1993 Macromedia
  5. #                             All Rights Reserved
  6. #
  7. ########################################################################
  8.  
  9. # Name of the system being built
  10. NAME    = fileio
  11.  
  12. # Select the type of build (one of the two):
  13. #BUILD    = $(PROG)
  14. BUILD    = $(DLL)
  15.  
  16. # Select whether debugging is to be enabled
  17. #DEBUG    = YES
  18. DEBUG    = NO
  19.  
  20. #
  21. # Memory model to use for building the system
  22. MODEL    = L
  23.  
  24. #
  25. # Derived filenames
  26. PROG    = $(NAME).exe
  27. DLL    = $(NAME).dll
  28. RES    = $(NAME).res
  29. DEF    = $(NAME).def
  30.  
  31. #
  32. # Header files used by the sources 
  33. HDRS    =
  34.  
  35. #
  36. # Source files
  37. SRCS    = $(ASMS) fileio.c
  38.  
  39. #
  40. # Assembler Source files
  41. ASMS    = 
  42.  
  43. #
  44. # All objects used in the system
  45. OBJS    = fileio.obj
  46.  
  47. #
  48. # Local Include Directory
  49. INCDIR    = -I..\include
  50.  
  51. #
  52. # Libraries required to be explicitly linked
  53. LIBS    = $(MODEL)dllcew libw
  54.  
  55. #
  56. # Flags for Assembling, Compiling and Linking
  57. #
  58. !if "$(DEBUG)" == "NO"
  59. #
  60. # Non-debugging options
  61. #
  62. AFLAGS    =
  63. !if "$(BUILD)" == "$(PROG)"
  64. CFLAGS    = $(INCDIR) -DMSW -A$(MODEL) -G2w -Ox -W3 -Zp -D_WINDOWS
  65. !endif
  66. !if "$(BUILD)" == "$(DLL)"
  67. CFLAGS    = $(INCDIR) -DMSW -A$(MODEL)w -G2w -Ox -W3 -Zp -D_WINDOWS -D_WINDLL
  68. !endif
  69. LFLAGS    = /al:16/m/NOD /PACKC
  70. CVPACK    = REM
  71. !else
  72. #
  73. # Debugging options
  74. #
  75. AFLAGS    = -DDEBUG -Zi
  76. !if "$(BUILD)" == "$(PROG)"
  77. CFLAGS    = $(INCDIR) -DMSW -DDEBUG -A$(MODEL) -G2sw -Od -W3 -Zip -D_WINDOWS
  78. !endif
  79. !if "$(BUILD)" == "$(DLL)"
  80. CFLAGS    = $(INCDIR) -DMSW -DDEBUG -A$(MODEL)w -G2sw -Od -W3 -Zip -D_WINDOWS -D_WINDLL
  81. !endif
  82. LFLAGS    = /al:16/m/NOD/CO /PACKC
  83. CVPACK    = REM
  84. !endif
  85.  
  86. #
  87. # Start of actual targets
  88.  
  89. all:    $(BUILD)
  90.  
  91. #
  92. # Make the program
  93. $(PROG)    $(DLL): $(OBJS) $(DEF) $(RES)
  94.         LINK $(LFLAGS) @<<
  95.                 $(OBJS)
  96.                 $@
  97.                 $(NAME).map
  98.                 $(LIBS)
  99.                 $(DEF)
  100. <<
  101.     mapsym /n $(NAME).map
  102.     $(CVPACK) -p $@
  103.         rc $(RES) $@
  104.  
  105. #
  106. # Build the DLL interface library
  107. $(NAME).lib:    $(DEF)
  108.     implib $(NAME).lib $(DEF)
  109.  
  110. # Resource file
  111. $(RES):    $(NAME).rc
  112.     rc -r $(NAME).rc
  113.  
  114. # Clean up directory
  115. clean:
  116.     del *.obj
  117.     del *.res
  118.     del *.sym
  119.     del *.map
  120.     del *.exe
  121.     del *.dll
  122.     del *.bak
  123.     del *.lib
  124.  
  125. # Make dependency list
  126. depend:
  127.     makedep $(INCDIR) > makefile.new @<<
  128.                 $(SRCS)
  129. <<
  130.     DEL makefile.BAK
  131.     REN makefile makefile.BAK
  132.     REN makefile.new makefile
  133.  
  134. # DO NOT DELETE THIS LINE
  135.  
  136. fileio.obj: ..\include/XObject.h 
  137.