Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
4.3 KiB

  1. # @@ COPY_RIGHT_HERE
  2. # @@ ROADMAP :: The Makefile for the Shell Test package
  3. UI=..\..
  4. !include rules.mk
  5. !IFDEF NTMAKEENV
  6. !INCLUDE $(NTMAKEENV)\makefile.def
  7. !ELSE # NTMAKEENV
  8. TESTPARS_LIBS = $(BUILD_WINLIB)\slibcew.lib $(BUILD_WINLIB)\libw.lib \
  9. $(BUILD_LIB)\lnetlibw.lib
  10. TESTAPP_APP = $(BINARIES_WIN)\apptest.exe
  11. TESTAPP_RES = $(BINARIES_WIN)\apptest.res
  12. TESTAPP_DEF = $(BINARIES_WIN)\apptest.def
  13. TESTAPP_LNK = $(BINARIES_WIN)\apptest.lnk
  14. TESTAPP_MAP = $(BINARIES_WIN)\apptest.map
  15. TESTAPP_SYM = $(BINARIES_WIN)\apptest.sym
  16. all:: test
  17. test:: win
  18. win: $(BINARIES_WIN)\testpars.exe $(TESTAPP_APP) $(TESTAPP_SYM)
  19. $(BINARIES_WIN)\testpars.exe: $(BINARIES_WIN)\testpars.obj
  20. $(LINK) /M /CO /NOD $(BINARIES_WIN)\testpars.obj, $(BINARIES_WIN)\testpars.exe,,$(TESTPARS_LIBS), testpars.def ;
  21. rcwin3 $(BINARIES_WIN)\testpars.exe
  22. mapsym testpars.map
  23. del $(BINARIES_WIN)\testpars.sym
  24. $(MV) testpars.sym $(BINARIES_WIN)\testpars.sym
  25. # following stuff builds apptest.exe
  26. LIBS1 = $(BUILD_WINLIB)\llibcew.lib $(BUILD_WINLIB)\libw.lib\
  27. $(BUILD_LIB)\dos\netapi.lib $(BUILD_LIB)\dos\pmspl.lib\
  28. $(BUILD_LIB)\lnetlibw.lib $(BUILD_LIB)\dosnet.lib\
  29. $(UI_LIB)\blt.lib $(UI_LIB)\lmobjw.lib $(UI_LIB)\mnet16w.lib\
  30. $(UI_LIB)\bltcc.lib \
  31. $(UI_LIB)\uistrw.lib $(UI_LIB)\uimiscw.lib\
  32. $(UI_LIB)\collectw.lib
  33. LIBS2 = $(UI_LIB)\profw.lib
  34. LANMAN_LIB = $(BINARIES_WIN)\lanman30.lib
  35. TESTAPP_LIBS = $(LIBS1) $(LIBS2) $(LANMAN_LIB)
  36. LINKED_OBJS = $(WIN_OBJS)
  37. LINKED_OBJS = $(LINKED_OBJS)
  38. $(TESTAPP_RES): apptest.rc appresrc.h apptest.ico appabout.dlg ..\h\pswddlog.h ..\xlate\pswddlog.dlg
  39. $(RCWIN3) $(BLT_RESOURCE) -FO$(TESTAPP_RES) -I..\xlate $(CINC) -r apptest.rc
  40. !ifdef CODEVIEW
  41. LINKOPT = /CO
  42. !else
  43. LINKOPT =
  44. !endif
  45. $(TESTAPP_APP) $(TESTAPP_SYM): $(LINKED_OBJS) $(TESTAPP_DEF) $(TESTAPP_LIBS)
  46. @echo Building $(TESTAPP_LNK)
  47. $(LINK) /PACKCODE:0x1FFF $(LINKOPT) @<<$(TESTAPP_LNK)
  48. $(LINKED_OBJS: =+^
  49. )
  50. $(TESTAPP_APP) /NOD /NOE /NOI
  51. $(*).map /MAP
  52. $(TESTAPP_LIBS: =+^
  53. )
  54. $(TESTAPP_DEF)
  55. <<KEEP
  56. $(RCWIN3) $(CINC) $(TESTAPP_RES) $(TESTAPP_APP)
  57. $(MAPSYM) $*.map
  58. -del $(TESTAPP_SYM)
  59. $(MV) $(*B).SYM $(BINARIES_WIN)
  60. # If the .res file is new and the .exe file is not, update the resource.
  61. # Note that the .rc file can be updated without having to either
  62. # compile or link the file.
  63. $(TESTAPP_APP): $(TESTAPP_RES)
  64. $(RCWIN3) $(CINC) $(TESTAPP_RES) $(TESTAPP_APP)
  65. $(TESTAPP_DEF): makefile $(WINSTUB)
  66. @echo Building $@
  67. copy $(WINSTUB) winstub.exe
  68. @rem <<$(@)
  69. ;********************************************************************
  70. ;** Microsoft LAN Manager **
  71. ;** Copyright(c) Microsoft Corp., 1987-1990 **
  72. ;********************************************************************
  73. ;*
  74. ;* FILE STATUS:
  75. ;* 9/18/90 Copied from generic template
  76. ;*
  77. ; module-definition file for generic -- used by LINK.EXE
  78. NAME ShellTestApp ; application's module name
  79. DESCRIPTION 'Sample Microsoft Windows Application'
  80. EXETYPE WINDOWS ; required for all Windows applications
  81. STUB 'WINSTUB.EXE'
  82. ; Generates error message if application
  83. ; is run without Windows
  84. ;CODE can be moved in memory and discarded/reloaded
  85. CODE PRELOAD MOVEABLE DISCARDABLE
  86. ;DATA must be MULTIPLE if program can be invoked more than once
  87. DATA PRELOAD MOVEABLE MULTIPLE
  88. HEAPSIZE 1024
  89. STACKSIZE 10240 ; recommended minimum for Windows applications
  90. ; All functions that will be called by any Windows routine
  91. ; MUST be exported.
  92. EXPORTS
  93. MAINWNDPROC @1 ; name of main window processing function
  94. ABOUT @2 ; name of "About" processing function
  95. SHELLDLGPROC @3 ; used by BLT lowercase in 20c
  96. ENUMWNDPROC @4 ;
  97. IMPORTS
  98. _wsprintf = USER._WSPRINTF
  99. <<KEEP
  100. # END this stuff builds apptest.exe
  101. TMP1 = $(APPCXXSRC:.cxx=.c)
  102. clean:
  103. -del testpars.map $(BINARIES_WIN)\testpars.obj $(BINARIES_WIN)\testpars.sym
  104. -del $(WIN_OBJS)
  105. -del $(TMP1)
  106. -del $(TESTAPP_RES)
  107. -del $(TESTAPP_DEF)
  108. -del $(TESTAPP_LNK)
  109. -del $(TESTAPP_MAP)
  110. -del $(TESTAPP_SYM)
  111. -del *.ixx
  112. -del depend.old
  113. -del winstub.exe
  114. clobber: clean
  115. -del $(BINARIES_WIN)\testpars.exe
  116. -del $(TESTAPP_APP)
  117. DEPEND_WIN = TRUE
  118. !include $(UI)\common\src\uidepend.mk
  119. # DO NOT DELETE THE FOLLOWING LINE
  120. !include depend.mk
  121. !ENDIF # NTMAKEENV