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.

92 lines
1.8 KiB

  1. !INCLUDE $(NTMAKEENV)\makefile.def
  2. !if 0
  3. WANT_C932 = TRUE
  4. NODEBUG=1
  5. ROOT=..\..
  6. PATH=$(ROOT)\dev\tools\masm;$(ROOT)\dev\tools\binr
  7. REALPROJ=m4
  8. PROJ=$(REALPROJ)x
  9. OBJS=\
  10. mem.obj \
  11. stream.obj \
  12. token.obj \
  13. define.obj \
  14. builtin.obj \
  15. main.obj \
  16. obj.obj \
  17. gc.obj \
  18. each.obj \
  19. divert.obj \
  20. xtoken.obj \
  21. crackle.obj \
  22. at.obj \
  23. hash.obj \
  24. eval.obj \
  25. io.obj \
  26. assert.obj \
  27. data.obj \
  28. predef.obj \
  29. string.obj \
  30. #
  31. CONSOLE=Y
  32. #INCLUDE=
  33. #LIB= (path)
  34. libpath = $(ROOT)\dev\sdk\lib;$(ROOT)\dev\tools\c932\lib;$(LIB)
  35. m4.exe: $(OBJS)
  36. set LIB=$(libpath)
  37. $(link) -link @<<
  38. $(deflflags)
  39. -subsystem:console -align:0x1000 -nodefaultlib
  40. -out:$(REALPROJ).exe
  41. -map:$(REALPROJ).map
  42. -base:0x400000
  43. $(OBJS)
  44. libc.lib user32.lib kernel32.lib
  45. VERSION.LIB
  46. <<
  47. # $(ROOT)\dev\tools\binw\winver32 $(REALPROJ).exe
  48. !include $(ROOT)\dev\win32c.mk
  49. cflags=$(cflags) -Zp1 -WX -DWIN32_LEAN_AND_MEAN
  50. !IFNDEF RETAIL
  51. cflags=$(cflags) -DDEBUG
  52. !ENDIF
  53. .c.lst:
  54. set INCLUDE=$(inclpath)
  55. $(cc) -Fc$*.lst $(cflags) $(targcvars) $(cdebug) $<
  56. #oink32.lst: oink32.c
  57. # set INCLUDE=$(inclpath)
  58. # $(cc) -Fcoink32.lst $(cflags) $(targcvars) $(cdebug) oink32.c
  59. HFILES=m4.h io.h ctype.h tok.h mem.h divert.h stream.h
  60. mem.obj: mem.c $(HFILES)
  61. stream.obj: stream.c $(HFILES)
  62. token.obj: token.c $(HFILES)
  63. define.obj: define.c $(HFILES)
  64. builtin.obj: builtin.c $(HFILES)
  65. main.obj: main.c $(HFILES)
  66. obj.obj: obj.c $(HFILES)
  67. gc.obj: gc.c $(HFILES)
  68. each.obj: each.c $(HFILES)
  69. divert.obj: divert.c $(HFILES)
  70. xtoken.obj: xtoken.c $(HFILES)
  71. predef.obj: predef.c $(HFILES)
  72. crackle.obj: crackle.c $(HFILES)
  73. at.obj: at.c $(HFILES)
  74. eval.obj: eval.c $(HFILES)
  75. io.obj: io.c $(HFILES)
  76. hash.obj: hash.c $(HFILES)
  77. assert.obj: assert.c $(HFILES)
  78. data.obj: data.c $(HFILES)
  79. string.obj: string.c $(HFILES)
  80. !endif