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.

60 lines
1.4 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 = fhcache
  12. IDL_FLAGS = /I $(BASEDIR)\public\sdk\inc -DREGISTER_PROXY_DLL
  13. SDKINC = $(BASEDIR)\public\sdk\inc
  14. INCS = -I. -I..\..\..\..\inc
  15. CLIENT_STUB =$(IDL_FILE_NAME)_i.c
  16. SERVER_STUB =$(IDL_FILE_NAME)_p.c
  17. DLL_STUB =dlldata.c
  18. HEADER_FILE =..\inc\$(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) -DMIDL_PASS
  26. MSC_WARNING_LEVEL= /W4 /WX
  27. #
  28. # Define output and dependencies
  29. #
  30. all: $(TARGETS) $(EXTRN_DEPENDS)
  31. !IF "$(BUILDMSG)" != ""
  32. @ech ; $(BUILDMSG) ;
  33. !ENDIF
  34. clean: delsrc all
  35. delsrc:
  36. -erase $(TARGETS)
  37. #
  38. # MIDL Compile stuff
  39. #
  40. $(HEADER_FILE) $(CLIENT_TARGETS) $(SERVER_TARGETS) $(DLL_TARGETS): .\$(IDL_FILE_NAME).idl
  41. midl -no_stamp $(MIDL_OPTIMIZATION_NT5) -h $(HEADER_FILE) -iid $(CLIENT_STUB) -proxy $(SERVER_STUB) -dlldata $(DLL_STUB) $(IDL_FLAGS) $(CPP) $(INCS) .\$(IDL_FILE_NAME).idl