Leaked source code of windows server 2003
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.

71 lines
1.8 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. TOKEN =usertok
  16. #
  17. # Destination for generated files
  18. #
  19. SENSAPI_HDR =..\senssvc\$(SENSAPI).h
  20. SENSAPI_CSTUB=..\sensapi\$(SENSAPI)_c.c
  21. SENSAPI_SSTUB=..\senssvc\$(SENSAPI)_s.c
  22. NOTIFY_HDR =..\senssvc\$(NOTIFY).h
  23. NOTIFY_CSTUB=..\sensapip\$(NOTIFY)_c.c
  24. NOTIFY_CSTUB2=..\senslogn\$(NOTIFY)_c.c
  25. NOTIFY_SSTUB=..\senssvc\$(NOTIFY)_s.c
  26. TOKEN_HDR=..\senslogn\$(TOKEN).h
  27. TOKEN_CSTUB=..\notify\$(TOKEN)_c.c
  28. TOKEN_SSTUB=..\senslogn\$(TOKEN)_s.c
  29. #
  30. # Targets
  31. #
  32. allidl: sensapi notify token
  33. #
  34. # SENS Connectivity APIs
  35. #
  36. sensapi: $(OUTPUT)\$(SENSAPI).h $(OUTPUT)\$(SENSAPI)_c.c $(OUTPUT)\$(SENSAPI)_s.c
  37. $(OUTPUT)\$(SENSAPI).h $(OUTPUT)\$(SENSAPI)_c.c $(OUTPUT)\$(SENSAPI)_s.c: $(SENSAPI).idl $(SENSAPI).acf
  38. midl $(COMMON_FLAGS) -out $(OUTPUT) $(SENSAPI).idl
  39. #
  40. # SENS Notify APIs (Private)
  41. #
  42. notify: $(OUTPUT)\$(NOTIFY).h $(OUTPUT)\$(NOTIFY)_c.c $(OUTPUT)\$(NOTIFY)_s.c
  43. $(OUTPUT)\$(NOTIFY).h $(OUTPUT)\$(NOTIFY)_c.c $(OUTPUT)\$(NOTIFY)_s.c: $(NOTIFY).idl $(NOTIFY).acf
  44. midl $(COMMON_FLAGS) /prefix client "SensApip_" -out $(OUTPUT) $(NOTIFY).idl
  45. #
  46. # Info about currently logged-in user (Private)
  47. #
  48. token: $(OUTPUT)\$(TOKEN).h $(OUTPUT)\$(TOKEN)_c.c $(OUTPUT)\$(TOKEN)_s.c
  49. $(OUTPUT)\$(TOKEN).h $(OUTPUT)\$(TOKEN)_c.c $(OUTPUT)\$(TOKEN)_s.c: $(TOKEN).idl $(TOKEN).acf
  50. midl $(COMMON_FLAGS) -prefix server _ -out $(OUTPUT) $(TOKEN).idl