home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / msysjour / vol07 / 07 / colrdrop / makefile < prev    next >
Makefile  |  1992-11-01  |  2KB  |  89 lines

  1. #****************************************************************************
  2. #      File:  MAKEFILE                                                    
  3. #                                                                         
  4. #   Purpose:  Builds the sample Control Panel Extension
  5. #             To build a non debug version, type nmk at command line
  6. #             To build a debug version, type nmk DEBUG=YES at the command line                                               
  7. #                                                                         
  8. # Development Team:
  9. #
  10. #       Greg Keyser
  11. #
  12. # Written by Microsoft Product Support Services, Windows Developer Support
  13. # Copyright (c) 1992 Microsoft Corporation. All rights reserved.
  14. #****************************************************************************
  15.  
  16. NAME = coolcolr
  17. OBJ1 = coolcolr.obj appdlg.obj error.obj
  18. OBJ  = $(OBJ1)
  19. LIBS = libw sdllcew commdlg
  20.  
  21. !if "$(DEBUG)" == "YES"
  22. DEF     = -DDEBUG
  23. CLOPT   = -Zi -Od
  24. MASMOPT = -Zi
  25. LINKOPT = /CO
  26. !else
  27. DEF     =
  28. CLOPT   = -Oas
  29. MASMOPT =
  30. LINKOPT =
  31. !endif
  32.  
  33. CC      = cl -c -nologo -W3 -AS -G2sw -Zp $(DEF) $(CLOPT)
  34. ASM     = masm -Mx -t -D?QUIET $(DEF) $(MASMOPT)
  35. LINK    = link /NOPACKC/NOD/NOE/LI/MAP/ALIGN:16 $(LINKOPT)
  36.  
  37. .c.obj:
  38.     $(CC) $*.c
  39.  
  40. .asm.obj:
  41.     $(ASM) $*;
  42.  
  43. goal: $(NAME).cpl copy
  44.  
  45. ###################################
  46.  
  47. $(NAME).cpl: $(OBJ) libinit.obj coolcolr.def $(NAME).res
  48.     $(LINK) @<<
  49.     libinit.obj +
  50.     $(OBJ1),
  51.     $(NAME).cpl,
  52.     $(NAME).map,
  53.     $(LIBS),
  54.     coolcolr.def
  55. <<
  56.     rc -v $(DEF) $(NAME).res $(NAME).cpl
  57. !if "$(DEBUG)" == "YES"
  58.     -cvpack -p $(NAME).cpl
  59.     mapsym $(NAME).map
  60. !endif
  61.  
  62. $(NAME).res: coolcolr.rc
  63.     rc $(DEF) -r -V -fo $(NAME).res coolcolr.rc
  64.  
  65. libinit.obj: libinit.asm
  66.     $(ASM) -DSEGNAME=_INIT -DWEPSEG=_WEP $*;
  67.  
  68. ############## copy ###############
  69.  
  70. copy:
  71.     copy $(NAME).cpl d:\win31\system
  72. !if "$(DEBUG)" == "YES"
  73.     copy $(NAME).sym d:\win31\system
  74. !endif
  75.     @echo ***** finished making $(NAME) *****
  76.  
  77. ###################################
  78. # START Dependencies 
  79.  
  80. appdlg.obj: appdlg.c global.h
  81.  
  82. coolcolr.obj: coolcolr.c global.h
  83.  
  84. error.obj: error.c global.h
  85.  
  86. libinit.obj: libinit.asm
  87.  
  88. # END Dependencies 
  89.