home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Multimedia Jumpstart 1.1a / CD_ROM.BIN / develpmt / source / palfx / makefile < prev    next >
Encoding:
Makefile  |  1992-09-20  |  3.6 KB  |  174 lines

  1. #
  2. #   Makefile for PALFX (Palette Efects as described in Graphics Design and
  3. #    Optimization).
  4. #
  5. #     (C) Copyright Microsoft Corp. 1991, 1992.  All rights reserved.
  6. #
  7. #     You have a royalty-free right to use, modify, reproduce and 
  8. #     distribute the Sample Files (and/or any modified version) in 
  9. #     any way you find useful, provided that you agree that 
  10. #     Microsoft has no warranty obligations or liability for any 
  11. #     Sample Application Files which are modified. 
  12. #     
  13. #     If you did not get this from Microsoft Sources, then it may not be the
  14. #     most current version.  This sample code in particular will be updated
  15. #     and include more documentation.  
  16. #
  17. #     Sources are:
  18. #         The MM Sys File Transfer BBS: The phone number is 206 936-4082.
  19. #    CompuServe: WINSDK forum, MDK section.
  20. #    Anon FTP from ftp.uu.net in vendor/microsoft/multimedia
  21.  
  22. #TO USE:
  23. #
  24. # Run program and then 'open' a DIB.  You can then 'fade to black'.
  25. # If you choose 'fade to dib' it will ask you for a DIB file to fade back
  26. # up.  You must 'revert' to reset system. (it's not very smart right now).
  27. #
  28.  
  29.  
  30.  
  31. #
  32. #   to make a NON-DEBUG build, type the following line:
  33. #       nmake DEBUG=NO
  34. #   just typing 'nmake' will build a DEBUG build
  35. #
  36. #   You can also set the environment variable DEBUG to NO
  37. #
  38.  
  39. # set MASM6 to TRUE to use MASM 6
  40. #
  41. # let environment variable overide...
  42. !IF "$(MASM6)" == ""
  43. MASM6    = FALSE
  44. !endif
  45.  
  46. NAME    = palfx
  47. MISC    = makefile
  48.  
  49. OPTZ    = -AM -G2sw 
  50. # turn this on if you want to see assembler that is generated: 
  51. #OPTZ    = -AM -G2sw -Fc
  52.  
  53. INCS    = $(NAME).h  
  54. SRCS    = $(NAME).c  
  55. OBJ1    = $(NAME).obj dib.obj 
  56. #effect.obj  sort.obj  mem.obj
  57. OBJ2    = 
  58. OBJ3    = 
  59. OBJS    = $(OBJ1) $(OBJ2) $(OBJ3)
  60. LIBS    = libw mmsystem mlibcew commdlg shell
  61.  
  62.  
  63. !IF "$(DEBUG)" == "NO"
  64.  
  65. DEF     =
  66. ASOPT   =
  67. CCOPT   =-Oxwt
  68. RCOPT   =
  69. LNOPT   =
  70.  
  71. !ELSE
  72.  
  73. DEF     = -DDEBUG
  74. ASOPT   = -Zi
  75. CCOPT   = -Zid -Od
  76. RCOPT   =
  77. LNOPT   = /CO/LI
  78.  
  79. !ENDIF
  80.  
  81. !if "$(MASM6)" == "TRUE"
  82. # masm 6.x
  83. AS  = mlx -DMASM6 -I. /Zm /c $(DEF) -Cx $(ASOPT)
  84. !else
  85. AS  = masm $(DEF) -Mx $(ASOPT)
  86. !endif
  87.  
  88. CC  = cl $(DEF) -c $(OPTZ) -W3 -Zpe $(CCOPT)
  89. RC  = rc $(DEF) -v $(RCOPT)
  90. LN  = link /NOPACKC/NOE/NOD/A:16/MAP $(LNOPT)
  91.  
  92. .asm.obj:
  93.             $(AS) $*;
  94.  
  95. .c.obj  :
  96.             $(CC) $*.c
  97.  
  98.  
  99. #
  100. #   RULES
  101. #
  102.  
  103. all :  $(NAME).exe
  104.  
  105.  
  106. $(NAME).exe ::   $(OBJS) $(NAME).res $(NAME).def
  107.     $(LN) @<<
  108.     $(OBJ1)+
  109.     $(OBJ2)+
  110.     $(OBJ3),
  111.     $(NAME).exe,
  112.     $(NAME).map,
  113.     $(LIBS),
  114.     $(NAME).def
  115. <<
  116.                 $(RC) -t $(NAME).res
  117. !IF "$(DEBUG)" == "NO"
  118. !else
  119.                 -cvpack -p $(NAME).exe
  120.                 -mapsym $(NAME).map
  121. !endif
  122.  
  123. $(NAME).exe ::   $(NAME).res
  124.                 $(RC) -t $(NAME).res
  125.  
  126. $(NAME).res :   $(NAME).rc $(NAME).h $(NAME).ico
  127.                 $(RC) -r $(NAME).rc
  128.  
  129. #
  130. #   SEGMENTATION
  131. #
  132.  
  133. SEGC = $(CC) -NT TSEG $*.c
  134.  
  135. !if "$(MASM6)" == "TRUE"
  136. # masm 6.x
  137. SEGA = $(AS) -DSEGNAME=TSEG -Ta $*.asm
  138. !else
  139. # masm 5.x
  140. SEGA = $(AS) -DSEGNAME=TSEG $* ;
  141. !endif
  142.  
  143. $(NAME).obj     : ; $(SEGC:TSEG=_TEXT)
  144. effect.obj      : ; $(SEGC:TSEG=EFFECT_TEXT)
  145. sort.obj    : ; $(SEGC:TSEG=SORT_TEXT)
  146. mem.obj        : ; $(SEGA:TSEG=MEM_TEXT)
  147. dib.obj        : ; $(SEGC:TSEG=DIB_TEXT)
  148.  
  149. #
  150. #   DEPENDENCIES
  151. #
  152.  
  153. $(NAME).obj :   $(NAME).c $(NAME).h 
  154.  
  155. $(NAME).res:    $(NAME).rc $(NAME).h $(NAME).rcv sampver.h sampver.ver
  156.  
  157. mem.obj:    mem.asm
  158.  
  159. #
  160. #   MISC. STUFF
  161. #
  162.  
  163. clean   :
  164.             del *.exe
  165.             del *.lib
  166.             del *.cod
  167.             del *.err
  168.             del *.res
  169.             del *.obj
  170.             del *.map
  171.             del *.sym
  172.             del *.zip
  173.  
  174.