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.

99 lines
2.0 KiB

  1. # HELLO makefile
  2. #
  3. # Copyright (c) 1991, Microsoft Corporation
  4. #
  5. # History:
  6. # 26-Jan-1991 Jeff Parsons (jeffpar)
  7. # Created.
  8. #
  9. .SUFFIXES:
  10. .SUFFIXES: .c .asm .h .inc .obj .lst .sys .exe .com .map .sym .def .lib
  11. !ifdef INCLUDE
  12. INCS =
  13. !else
  14. INCS = -I..\..\inc
  15. !endif
  16. ########## Path definition so we find 16 bit tools ##########
  17. # Also works around stupid bug in RC 3.1 that doesn't allow rcpp.err to be
  18. # in a directory that is greater than 128 chars down the path, even if
  19. # rc 3.1 is running as an OS/2 app.
  20. PATH = $(_NTBINDIR)\private\tools16;$(PATH)
  21. AOBJ = -Ml -t -DDEBUG $(INCS)
  22. COBJ = -AS -Gs -Os -W2 -Zp -DDEBUG $(INCS)
  23. CW16 = -AS -Gsw -Os -W2 -Zp -DDEBUG $(INCS)
  24. CW16L = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  25. LINK = /map /stack:8192
  26. W16LIBS = ..\..\lib\slibcew.lib ..\..\lib\libw.lib
  27. .h.inc:
  28. h2inc -t $*.h -o $*.inc
  29. .asm.obj:
  30. masm $(AOBJ) $*;
  31. .asm.lst:
  32. masm $(AOBJ) -l $*,nul,$*.lst;
  33. .c.obj:
  34. cl16 -c -nologo $(CW16) $*.c
  35. .c.lst:
  36. cl16 -c -nologo $(CW16) -Fonul -Fc$*.lst $*.c
  37. .def.lib:
  38. implib $*.lib $*.def
  39. .map.sym:
  40. mapsym $*
  41. all: hello.exe hello.sym
  42. clean: cleanup all
  43. cleanup:
  44. if exist *.lrf del *.lrf
  45. if exist *.def del *.def
  46. if exist *.obj del *.obj
  47. if exist *.exe del *.exe
  48. if exist *.map del *.map
  49. if exist *.sym del *.sym
  50. hello.lrf: makefile
  51. echo hello.obj>hello.lrf
  52. echo hello $(LINK)>>hello.lrf
  53. echo hello>>hello.lrf
  54. echo $(W16LIBS) /nod>>hello.lrf
  55. echo hello;>>hello.lrf
  56. hello.def: makefile
  57. echo name hello>hello.def
  58. echo exetype windows>>hello.def
  59. echo stub '..\..\bin\winstub.exe'>>hello.def
  60. echo code preload moveable discardable>>hello.def
  61. echo data preload moveable multiple>>hello.def
  62. echo heapsize 4096>>hello.def
  63. echo exports WndProc>>hello.def
  64. echo exports EnumWindowFunc>>hello.def
  65. hello.res: hello.rc hello.h
  66. rc16 -r -fo hello.res $(INCS) hello.rc
  67. hello.exe hello.map: hello.obj hello.lrf hello.def hello.res
  68. link16 @hello.lrf;
  69. rc16 hello.res hello.exe
  70. !ENDIF