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.

62 lines
1.5 KiB

  1. #
  2. # makefile.inc
  3. # Makefile for generating files from the .idl file
  4. #
  5. # Specify the following in the file for use
  6. #
  7. # IDL_FILE_NAME ( without the .idl suffix)
  8. # IDL_FLAGS if any thing specific required
  9. #
  10. !INCLUDE $(NTMAKEENV)\makefile.plt
  11. IDL_FILE_NAME = admex
  12. IDL_FLAGS = /I $(BASEDIR)\public\sdk\inc /I ..\..\metadata\interfac -DREGISTER_PROXY_DLL
  13. SDKINC = $(BASEDIR)\public\sdk\inc
  14. INCS = -I. -I..\..\..\inc
  15. CLIENT_STUB = $(O)\$(IDL_FILE_NAME)_i.c
  16. SERVER_STUB = $(O)\$(IDL_FILE_NAME)_p.c
  17. DLL_STUB = $(O)\dlldata.c
  18. HEADER_FILE = ..\..\..\inc\$(O)\$(IDL_FILE_NAME).h
  19. CLIENT_TARGETS = $(CLIENT_STUB) \
  20. SERVER_TARGETS = $(SERVER_STUB) \
  21. DLL_TARGETS = $(DLL_STUB) \
  22. TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS) \
  23. $(HEADER_FILE) $(DLL_TARGETS)
  24. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) \
  25. $(C_DEFINES) $(NET_C_DEFINES) -DMIDL_PASS
  26. MSC_WARNING_LEVEL= /W3 /WX
  27. #
  28. # Define output and dependencies
  29. #
  30. all: $(TARGETS) $(EXTRN_DEPENDS)
  31. !IF "$(BUILDMSG)" != ""
  32. @ech ; $(BUILDMSG) ;
  33. !ENDIF
  34. clean: delsrc
  35. delsrc:
  36. -erase $(TARGETS) $(BASEDIR)\public\sdk\inc\$(IDL_FILE_NAME).h
  37. obj\$(TARGETCPU)\admexxp.obj: admex_p.c
  38. #
  39. # MIDL Compile stuff
  40. #
  41. $(HEADER_FILE) $(CLIENT_TARGETS) $(SERVER_TARGETS) $(DLL_TARGETS) : .\$(IDL_FILE_NAME).idl
  42. midl -Oi -no_stamp -error allocation -error ref -h $(HEADER_FILE) -iid $(CLIENT_STUB) -proxy $(SERVER_STUB) -dlldata $(DLL_STUB) $(IDL_FLAGS) $(CPP) .\$(IDL_FILE_NAME).idl $(INCS)