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.

80 lines
2.2 KiB

  1. WOWINC = ..\wow\inc
  2. WOWLIB = ..\wow\lib
  3. PROJ = wpnpin16
  4. DEBUG = 1
  5. PROGTYPE = 1
  6. D_RCDEFINES =-DDEBUG
  7. R_RCDEFINES =-DNDEBUG
  8. PROJPATH = win95\obj\i386
  9. PATH=$(_NTDRIVE)$(_NTROOT)\private\tools16;$(PATH)
  10. TOOLS16=$(_NTDRIVE)$(_NTROOT)\tools\tools16
  11. CC16=$(TOOLS16)\cl16
  12. CPP16=$(TOOLS16)\cl16
  13. CXX16=$(TOOLS16)\cl16
  14. RC16=$(TOOLS16)\rc16
  15. MASM=$(TOOLS16)\masm
  16. LINK16=$(TOOLS16)\link16
  17. INCS = -I$(WOWINC) -I$(_NTDRIVE)$(_NTROOT)\public\sdk\inc -I..\inc
  18. CFLAGS_D_WDLL = /nologo /G2sw /Zp1 /W3 /ALw /Od /Zd /DDEBUG /DNOPRSHT /FR
  19. CFLAGS_R_WDLL = /nologo /G2sw /Zp1 /W3 /ALw /Ox /DNDEBUG /DNOPRSHT /FR
  20. LFLAGS_D_WDLL = /NOLOGO /BATCH /NOD /NOE /PACKC:61440 /ALIGN:16 /MAP /CO ..\thunk\win95\obj\i386\thk16.obj
  21. LFLAGS_R_WDLL = /NOLOGO /BATCH /NOD /NOE /PACKC:61440 /ALIGN:16 /MAP ..\thunk\win95\obj\i386\thk16.obj
  22. LIBS_D_WDLL = libw ldllcew setupx commdlg.lib olecli.lib olesvr.lib shell.lib lzexpand
  23. LIBS_R_WDLL = libw ldllcew setupx commdlg.lib olecli.lib olesvr.lib shell.lib lzexpand
  24. RESFLAGS = /nologo
  25. LIBS_EXT =
  26. !if "$(DEBUG)" == "1"
  27. CFLAGS = $(CFLAGS_D_WDLL)
  28. LFLAGS = $(LFLAGS_D_WDLL)
  29. LIBS = $(LIBS_D_WDLL)
  30. RCDEFINES = $(D_RCDEFINES)
  31. !else
  32. CFLAGS = $(CFLAGS_R_WDLL)
  33. LFLAGS = $(LFLAGS_R_WDLL)
  34. LIBS = $(LIBS_R_WDLL)
  35. RCDEFINES = $(R_RCDEFINES)
  36. !endif
  37. OBJS = $(PROJPATH)\wpnpin16.obj \
  38. $(PROJPATH)\debug.obj \
  39. $(PROJPATH)\globals.obj \
  40. $(PROJPATH)\libentry.obj
  41. all: $(PROJPATH)\$(PROJ).dll
  42. .asm{$(PROJPATH)}.obj:
  43. $(MASM) -w2 $(INCS) $(@B).asm, $*.obj;
  44. .c{$(PROJPATH)}.obj:
  45. @set include=..\wow\inc;..\inc;$(_NTDRIVE)$(_NTROOT)\public\sdk\inc
  46. $(CC16) $(CFLAGS) /Fo$* /c $(*F).c
  47. .rc{$(PROJPATH)}.res:
  48. $(RC16) $(INCS) $(RCDEFINES) -r -fo $*.res $(*F).rc
  49. $(PROJPATH)\$(PROJ).dll:: $(OBJS) $(PROJPATH)\wpnpin16.res $(PROJ).def
  50. echo >NUL @<<$(PROJ).crf
  51. $(OBJS)
  52. $(PROJPATH)\$(PROJ).dll
  53. $(PROJPATH)\$(PROJ).map
  54. ..\wow\lib\+
  55. ..\thunk\+
  56. $(LIBS)
  57. $(PROJ).def;
  58. <<
  59. $(LINK16) $(LFLAGS) @$(PROJ).CRF
  60. $(RC16) $(RESFLAGS) $(PROJPATH)\WPNPIN16.RES $@
  61. implib /nowep $(PROJPATH)\$(PROJ).LIB $(PROJPATH)\$(PROJ).DLL
  62. mapsym -o $(PROJPATH)\$(PROJ).sym $(PROJPATH)\$(PROJ).map
  63. binplace -o $(ALT_PROJECT_TARGET) $@
  64. binplace -o $(ALT_PROJECT_TARGET)\symbols $(PROJPATH)\$(PROJ).sym