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.

48 lines
1.1 KiB

  1. #
  2. # This is the MIDL compile phase of the build process.
  3. #
  4. # The following is where you put the name of your .idl file without
  5. # the .idl extension:
  6. #
  7. !INCLUDE $(NTMAKEENV)\makefile.plt
  8. ELFIDL=elf
  9. CLIENT_FILES=elfclnt\$(ELFIDL)_c.c $(ELFIDL).h
  10. SERVER_FILES=server\$(ELFIDL)_s.c
  11. LOCAL_FILES=$(ELFIDL)_c.c $(ELFIDL)_s.c
  12. INCS= -I$(SDK_INC_PATH) -I$(CRT_INC_PATH)
  13. ELFMIDLARGS=-oldnames -ms_ext -c_ext \
  14. -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(INCS)
  15. #
  16. # Define Products and Dependencies
  17. #
  18. all: $(CLIENT_FILES) $(SERVER_FILES) del_elf_sources
  19. !IF "$(BUILDMSG)" != ""
  20. @ech ; $(BUILDMSG) ;
  21. !ENDIF
  22. clean: delete_source all
  23. delete_source:
  24. -erase $(CLIENT_FILES) $(SERVER_FILES) $(LOCAL_FILES)
  25. #
  26. # MIDL COMPILE
  27. #
  28. $(CLIENT_FILES): $(ELFIDL).idl
  29. midl $(MIDL_OPTIMIZATION) $(ELFMIDLARGS) $(ELFIDL).idl
  30. copy $(ELFIDL)_c.c elfclnt\$(ELFIDL)_c.c
  31. $(SERVER_FILES): $(ELFIDL).idl
  32. midl $(MIDL_OPTIMIZATION) -client none $(ELFMIDLARGS) $(ELFIDL).idl
  33. copy $(ELFIDL)_s.c server\$(ELFIDL)_s.c
  34. del_elf_sources:
  35. -del $(LOCAL_FILES) 1> NUL 2>NUL