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.

76 lines
1.6 KiB

  1. # mciole16 makefile
  2. #
  3. # Copyright (c) 1991, Microsoft Corporation
  4. #
  5. # History:
  6. # Created
  7. # 06-May-1993 Stephen Estrop (StephenE)
  8. # 24-Jan-1994 Lee Hart (LeeHart) - Added Version Resources
  9. #
  10. !INCLUDE ..\makefile.inc
  11. INCS = -I. $(INCS)
  12. AOBJ = -Mx -t -D?QUIET $(DEFINES) $(INCS)
  13. LPATH = ..\..\tools.os2
  14. LINKOPTS = /map /nod
  15. W16LIBS = ..\lib\$(ALT_PROJECT)\libw.lib ..\lib\snocrt.lib olecli.lib
  16. !if !$(FREEBUILD)
  17. AOBJ = $(AOBJ) -Zd
  18. LINKOPTS = $(LINKOPTS) /LI
  19. !endif
  20. .asm{$(DEST)}.obj:
  21. $(ASM) $(AOBJ) $(*F),$*;
  22. .asm{$(DEST)}.lst:
  23. $(ASM) $(AOBJ) -l $(*F),nul,$*.lst;
  24. #.c{$(DEST)}.obj:
  25. # $(CL) -c -nologo $(CW16) -Fo$*.obj $(*F).c
  26. #.c{$(DEST)}.lst:
  27. # $(CL) -c -nologo $(CW16) -Fonul -Fc$*.lst $(*F).c
  28. .def.lib:
  29. implib $*.lib $*.def
  30. .rc{$(DEST)}.res:
  31. @set include=$(ENVINCS) $(INCLUDE)
  32. $(RESCOMP) -r -fo $@ $(*F).rc
  33. OBJ1= $(DEST)\libinit.obj $(DEST)\mciole.obj
  34. RESCOMP=$(RC)
  35. all: $(DEST)\mciole16.dll
  36. $(DEST)\mciole16.dll: $(OBJ1) $(DEST)\mciole16.res
  37. $(LINK) $(LINKOPTS) @<<
  38. $(OBJ1)
  39. $(DEST)\mciole16.dll
  40. $(DEST)\mciole16.map
  41. $(W16LIBS)
  42. mciole.def
  43. <<
  44. $(RESCOMP) -t $(DEST)\mciole16.res $(DEST)\mciole16.dll
  45. mapsym -o $(DEST)\mciole16.sym $(DEST)\mciole16.map
  46. -binplace -o $(ALT_PROJECT_TARGET) $(DEST)\mciole16.dll $(DEST)\mciole16.map $(DEST)\mciole16.sym
  47. $(DEST)\mciole16.res: $(*F).rc $(*F).rcv ..\inc\common.ver
  48. clean: cleanup all
  49. cleanup:
  50. cd $(DEST)
  51. if exist *.lrf del *.lrf
  52. if exist *.obj del *.obj
  53. if exist *.exe del *.exe
  54. if exist *.dll del *.dll
  55. if exist *.map del *.map
  56. if exist *.sym del *.sym
  57. if exist *.res del *.res
  58. cd ..\..\..