home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Multimedia Jumpstart 1.1a / CD_ROM.BIN / develpmt / source / mergedib / makefile < prev    next >
Encoding:
Makefile  |  1992-11-26  |  1.8 KB  |  91 lines

  1. # MergeDIB makefile
  2. #
  3. # This makefile is in Microsoft NMAKE format.
  4. #
  5. # make        builds MergeDIB.exe, the "MergeDIB" application
  6. # make clean    deletes files that can be regenerated by rebuilding MergeDIB.exe
  7.  
  8. NAME = MergeDIB
  9.  
  10. !ifndef DEBUG
  11. DEF  =
  12. CC   = cl -c -W3 -AM -G2sw -Zp -nologo -Ows $(DEF)
  13. ASM  = masm -Mx -t -D?QUIET
  14. LINK = link /NOE/NOD
  15. !else
  16. DEF  = -DDEBUG
  17. CC   = cl -c -W3 -AM -G2sw -Zip -nologo -Od $(DEF)
  18. ASM  = masm -Mx -t -D?QUIET -Zi
  19. LINK = link /NOE/NOD/CO/LI/MAP
  20.  
  21. !endif
  22.  
  23. SEGC = $(CC) -NT TSEG $*.c
  24.  
  25. !IF "$(MASM6)" == "TRUE"
  26. # masm 6.x
  27. AS  = mlx -DMASM6 -I. /Zm /c $(DEF) -Cx $(ASOPT)
  28. !ELSE
  29. AS  = masm $(DEF) -Mx $(ASOPT)
  30. !ENDIF
  31.  
  32. LIBS = libw mlibcew commdlg
  33.  
  34. ############################### wincom
  35.  
  36. OBJ1 = $(NAME).obj
  37. OBJ2 = file.obj rare.obj dib.obj mem.obj
  38. OBJ  = $(OBJ1) $(OBJ2)
  39.  
  40. .c.obj:
  41.     $(CC) -NT$* $*.c
  42.  
  43. .asm.obj:
  44. !IF "$(MASM6)" == "TRUE"
  45.     $(AS) -Ta $*.asm
  46. !else
  47.     $(AS) $*;
  48. !endif
  49.  
  50. goal: $(NAME).exe 
  51.  
  52. $(NAME).exe $(NAME).map: $(OBJ) $(NAME).res $(NAME).def
  53.     $(LINK) @<<
  54.     $(OBJ1) +
  55.     $(OBJ2),
  56.     $(NAME), $(NAME), $(LIBS), $(NAME).def
  57. <<
  58.     rc $(NAME).res
  59. !ifdef DEBUG
  60.     cvpack $(NAME).exe
  61. !endif
  62.  
  63. $(NAME).res: $(NAME).rc $(NAME).ico $(NAME).h
  64.     rc -r $(NAME).rc
  65.  
  66. $(NAME).sym: $(NAME).map $(NAME).exe
  67.     mapsym $(NAME).map
  68.  
  69. # dependencies and segmentation...
  70. $(NAME).obj : $(NAME).c $(NAME).h ;    $(CC) -NT _TEXT $*.c
  71. file.obj : file.c $(NAME).h ;        $(CC) -NT RARE  $*.c
  72. rare.obj : rare.c  $(NAME).h ;        $(CC) -NT RARE  $*.c
  73. dib.obj  : dib.c dib.h gmem.h ;        $(CC) -NT _TEXT $*.c
  74. !IF "$(MASM6)" == "TRUE"
  75. mem.obj  : mem.asm ;            $(AS) -DSEGNAME=_TEXT -Ta $*.asm
  76. !else
  77. mem.obj  : mem.asm ;            $(AS) -DSEGNAME=_TEXT $*.asm;
  78. !endif
  79.  
  80. clean:
  81.     del *.exe
  82.     del *.res
  83.     del *.obj
  84.     del *.map
  85.     del *.sym
  86.  
  87. copy:
  88.     copy $(NAME).exe ..\bin
  89.     copy $(NAME).sym ..\bin
  90.