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.1 KiB

  1. !INCLUDE $(NTMAKEENV)\makefile.plt
  2. #
  3. # Common MIDL related define
  4. #
  5. CPP_CMD = -cpp_cmd "$(MIDL_CPP)"
  6. CPP_OPT = $(MIDL_FLAGS)
  7. MIDL_INC = -I$(COM_INC_PATH) -I$(SDK_INC_PATH) -I$(CRT_INC_PATH) -I..\sensapi -I..\sensapip
  8. COMMON_FLAGS= -Oicf -error all -robust -c_ext -ms_ext -oldnames -char unsigned $(CPP_CMD) $(CPP_OPT) $(MIDL_INC)
  9. #
  10. # Common variables
  11. #
  12. OUTPUT =$(_OBJ_DIR)\$(TARGET_DIRECTORY)
  13. SENSAPI =api
  14. NOTIFY =notify
  15. IRNOTIFY =irnotify
  16. TOKEN =usertok
  17. #
  18. # Destination for generated files
  19. #
  20. SENSAPI_HDR =..\senssvc\$(SENSAPI).h
  21. SENSAPI_CSTUB=..\sensapi\$(SENSAPI)_c.c
  22. SENSAPI_SSTUB=..\senssvc\$(SENSAPI)_s.c
  23. NOTIFY_HDR =..\senssvc\$(NOTIFY).h
  24. NOTIFY_CSTUB=..\sensapip\$(NOTIFY)_c.c
  25. NOTIFY_CSTUB2=..\senslogn\$(NOTIFY)_c.c
  26. NOTIFY_SSTUB=..\senssvc\$(NOTIFY)_s.c
  27. IRNOTIFY_HDR =..\senslogn\$(IRNOTIFY).h
  28. IRNOTIFY_CSTUB=..\senslogn\$(IRNOTIFY)_c.c
  29. IRNOTIFY_SSTUB=..\notify\$(IRNOTIFY)_s.c
  30. TOKEN_HDR=..\senslogn\$(TOKEN).h
  31. TOKEN_CSTUB=..\notify\$(TOKEN)_c.c
  32. TOKEN_SSTUB=..\senslogn\$(TOKEN)_s.c
  33. #
  34. # Targets
  35. #
  36. allidl: sensapi notify token irnotify
  37. #
  38. # SENS Connectivity APIs
  39. #
  40. sensapi: $(OUTPUT)\$(SENSAPI).h $(OUTPUT)\$(SENSAPI)_c.c $(OUTPUT)\$(SENSAPI)_s.c
  41. $(OUTPUT)\$(SENSAPI).h $(OUTPUT)\$(SENSAPI)_c.c $(OUTPUT)\$(SENSAPI)_s.c: $(SENSAPI).idl $(SENSAPI).acf
  42. midl $(COMMON_FLAGS) -out $(OUTPUT) $(SENSAPI).idl
  43. #
  44. # SENS Notify APIs (Private)
  45. #
  46. notify: $(OUTPUT)\$(NOTIFY).h $(OUTPUT)\$(NOTIFY)_c.c $(OUTPUT)\$(NOTIFY)_s.c
  47. $(OUTPUT)\$(NOTIFY).h $(OUTPUT)\$(NOTIFY)_c.c $(OUTPUT)\$(NOTIFY)_s.c: $(NOTIFY).idl $(NOTIFY).acf
  48. midl $(COMMON_FLAGS) /prefix client "SensApip_" -out $(OUTPUT) $(NOTIFY).idl
  49. #
  50. # Info about currently logged-in user (Private)
  51. #
  52. token: $(OUTPUT)\$(TOKEN).h $(OUTPUT)\$(TOKEN)_c.c $(OUTPUT)\$(TOKEN)_s.c
  53. $(OUTPUT)\$(TOKEN).h $(OUTPUT)\$(TOKEN)_c.c $(OUTPUT)\$(TOKEN)_s.c: $(TOKEN).idl $(TOKEN).acf
  54. midl $(COMMON_FLAGS) -prefix server _ -out $(OUTPUT) $(TOKEN).idl
  55. irnotify: $(OUTPUT)\$(IRNOTIFY).h $(OUTPUT)\$(IRNOTIFY)_c.c $(OUTPUT)\$(IRNOTIFY)_s.c
  56. $(OUTPUT)\$(IRNOTIFY).h $(OUTPUT)\$(IRNOTIFY)_c.c $(OUTPUT)\$(IRNOTIFY)_s.c: $(IRNOTIFY).idl $(IRNOTIFY).acf
  57. midl $(COMMON_FLAGS) -prefix server _ -out $(OUTPUT) $(IRNOTIFY).idl