home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / MSSDK.MK < prev    next >
Makefile  |  1996-08-28  |  3KB  |  112 lines

  1. ############################################################################
  2. #
  3. #  Copyright (C) 1995 Microsoft Corporation.  All Rights Reserved.
  4. #
  5. #  File:        mssdk.mk
  6. #  Content:     Rules for building the components of the SDK.
  7. #               For use with MSVC 2.0 or higher
  8. #
  9. ############################################################################
  10.  
  11. !if "$(GSDKROOT)" == ""
  12. GSDKROOT=..\..\..
  13. !endif
  14.  
  15. #############################################################################
  16. #
  17. # Set up include & lib path
  18. #
  19. #############################################################################
  20. INCLUDE=$(GSDKROOT)\inc;$(INCLUDE)
  21. LIB=$(GSDKROOT)\lib;$(LIB)
  22.  
  23. #############################################################################
  24. #
  25. # new suffixes
  26. #
  27. #############################################################################
  28. .SUFFIXES:
  29. .SUFFIXES: .asm .c .cpp .exe .dll .h .inc .lib .sym .rc .res
  30.  
  31. #############################################################################
  32. #
  33. # C compiler definitions
  34. #
  35. #############################################################################
  36. CC      =cl
  37. CFLAGS = $(CFLAGS) -W3 -WX -c -Zp
  38. CFLAGS  =$(CFLAGS) -Gf4ys -DIS_32 -DWIN32 
  39. !ifndef LOGO
  40. CFLAGS  =$(CFLAGS) -nologo
  41. !endif
  42.  
  43. #############################################################################
  44. #
  45. # Linker definitions
  46. #
  47. #############################################################################
  48. LINK    =link -link
  49. LFLAGS  =$(LFLAGS) -nodefaultlib -align:0x1000
  50. !ifndef LOGO
  51. LFLAGS  =$(LFLAGS) -nologo
  52. !endif
  53.  
  54. #############################################################################
  55. # resource compiler definitions
  56. #
  57. #############################################################################
  58. RCFLAGS =$(RCFLAGS) -I..
  59. RCFLAGS =$(RCFLAGS) -DWIN32 -DIS_32
  60. RC = rc
  61.  
  62. #############################################################################
  63. #
  64. # assembler definitions
  65. #
  66. #############################################################################
  67. ASM = ml
  68. AFLAGS  =$(AFLAGS) -DIS_32 -DWIN32
  69. AFLAGS  =$(AFLAGS) -W3 -WX -Zd -c -Cx -DMASM6
  70.  
  71. #############################################################################
  72. #
  73. # librarian definitions
  74. #
  75. #############################################################################
  76. LIBEXE = lib
  77.  
  78. #############################################################################
  79. #
  80. # targets
  81. #
  82. #############################################################################
  83.  
  84. goal:   $(GOALS)
  85.  
  86. {..}.c{}.obj:
  87.         @$(CC) @<<
  88. $(CFLAGS) -Fo$(@B).obj ..\$(@B).c
  89. <<
  90.  
  91. {..\..\misc}.c{}.obj:
  92.         @$(CC) @<<
  93. $(CFLAGS) -Fo$(@B).obj ..\..\misc\$(@B).c
  94. <<
  95.  
  96. {..}.cpp{}.obj:
  97.         @$(CC) @<<
  98. $(CFLAGS) -Fo$(@B).obj ..\$(@B).cpp
  99. <<
  100.  
  101. {..\..\misc}.cpp{}.obj:
  102.         @$(CC) @<<
  103. $(CFLAGS) -Fo$(@B).obj ..\..\misc\$(@B).cpp
  104. <<
  105.     
  106. {..}.asm{}.obj:
  107.         $(ASM) $(AFLAGS) -Fo$(@B).obj ..\$(@B).asm
  108.         
  109. {..}.rc{}.res:
  110.         $(RC) $(RCFLAGS) -r -Fo$(@B).res ..\$(@B).rc
  111.