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.

77 lines
1.9 KiB

  1. # Copyright (c) 1994, Microsoft Corporation, all rights reserved
  2. #
  3. # makefile
  4. # Remote Access external APIs
  5. # Windows NT WOS 16->32 thunks, 16-bit side
  6. #
  7. # 04/02/94 Steve Cobb (adapted from WFWNET makefile)
  8. !INCLUDE ..\makefile.inc
  9. # W0 used because the CallProc32W prototype causes scads of warnings
  10. # in normal use. CallProcEx32W should solve this, when available.
  11. #
  12. DEFINES = $(DEFINES) -DBUILDDLL
  13. INCLUDES=.;..\inc;$(SDK_INC_PATH)
  14. INCS = -I. -I..\inc
  15. CW16 = -Alfu -G2s -W0 $(DEFINES)
  16. LINKOPTS = /map /align:16 /nod
  17. !if !$(FREEBUILD)
  18. CW16 = $(CW16) /Od /Oi /Zd
  19. LINKOPTS = $(LINKOPTS) /LI
  20. !endif
  21. .c.obj:
  22. set include=$(INCLUDES)
  23. $(CL) -c -nologo $(CW16) $*.c
  24. .c.lst:
  25. set include=$(INCLUDES)
  26. $(CL) -c -nologo $(CW16) -Fonul -Fc$*.lst $*.c
  27. .def.lib:
  28. implib $*.lib $*.def
  29. .rc.res:
  30. $(RC) $(INCS) -r -fo$*.res $*.rc
  31. all: $(DEST)\rasapi16.dll $(DEST)\rasapi16.sym
  32. -binplace -o $(ALT_PROJECT_TARGET) $(DEST)\rasapi16.dll $(DEST)\rasapi16.map $(DEST)\rasapi16.sym
  33. clean: cleanup all
  34. cleanup:
  35. cd $(DEST)
  36. if exist *.lrf del *.lrf
  37. if exist *.obj del *.obj
  38. if exist *.dll del *.dll
  39. if exist *.map del *.map
  40. if exist *.sym del *.sym
  41. if exist *.res del *.res
  42. cd ..\..\..
  43. $(DEST)\rasapi16.obj: .\ras.h .\raserror.h ..\inc\windows.h
  44. set include=$(INCLUDES)
  45. $(CL) -c -Fo$* -nologo $(CW16) $(*F).c
  46. $(DEST)\rasapi16.lrf: makefile.sub
  47. echo $(DEST)\rasapi16.obj+ >> $@
  48. echo ..\lib\libentry.obj >> $@
  49. echo $(DEST)\rasapi16.dll >> $@
  50. echo $(DEST)\rasapi16.map >> $@
  51. echo ..\lib\$(ALT_PROJECT)\libw.lib+ >> $@
  52. echo ..\lib\ldllcew.lib >> $@
  53. echo rasapi16.def >> $@
  54. $(DEST)\rasapi16.res: $(*F).rc ..\inc\common.ver ..\inc\version.h ..\inc\ver.h
  55. $(RC) $(INCS) -r -fo$*.res $(*F).rc
  56. $(DEST)\rasapi16.dll: $*.obj $(DEST)\rasapi16.res $(DEST)\rasapi16.lrf
  57. $(DEST)\rasapi16.dll: ..\lib\libentry.obj ..\lib\$(ALT_PROJECT)\libw.lib
  58. $(LINK) $(LINKOPTS) @$*.lrf;
  59. $(RC) -t $*.res $*.dll