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.

54 lines
1.5 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. MIDL_PROTOCOL=dce
  8. !INCLUDE $(NTMAKEENV)\makefile.plt
  9. IDL_NAME = svcctl
  10. INCS = -I. -Iinc -I$(SDK_INC_PATH) -I$(CRT_INC_PATH)
  11. CLIENT_TARGETS = client\$(IDL_NAME)_c.c \
  12. inc\$(IDL_NAME).h
  13. SERVER_TARGETS = server\$(IDL_NAME)_s.c
  14. EXTRN_DEPENDS = $(SDK_INC_PATH)\windef.h \
  15. $(SDK_INC_PATH)\winsvc.h \
  16. inc\imports.h \
  17. $(IDL_NAME).acf
  18. CPP = -cpp_cmd "$(MIDL_CPP)" -cpp_opt "-nologo -E $(MIDL_FLAGS) $(INCS)"
  19. #
  20. # Define Products and Dependencies
  21. #
  22. all: $(CLIENT_TARGETS) $(SERVER_TARGETS) $(EXTRN_DEPENDS)
  23. !IF "$(BUILDMSG)" != ""
  24. @ech ; $(BUILDMSG) ;
  25. !ENDIF
  26. clean: delete_source all
  27. delete_source:
  28. erase $(CLIENT_TARGETS) $(SERVER_TARGETS)
  29. #
  30. # MIDL COMPILE
  31. #
  32. $(CLIENT_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  33. midl $(MIDL_OPTIMIZATION) -server none -oldnames -ms_ext -c_ext $(CPP) .\$(IDL_NAME).idl
  34. IF EXIST $(IDL_NAME)_c.c copy $(IDL_NAME)_c.c .\client & del $(IDL_NAME)_c.c
  35. IF EXIST $(IDL_NAME).h copy $(IDL_NAME).h .\inc & del $(IDL_NAME).h
  36. $(SERVER_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  37. midl $(MIDL_OPTIMIZATION) -client none -oldnames -ms_ext -c_ext $(CPP) .\$(IDL_NAME).idl
  38. IF EXIST $(IDL_NAME)_s.c copy $(IDL_NAME)_s.c .\server & del $(IDL_NAME)_s.c
  39. IF EXIST $(IDL_NAME).h copy $(IDL_NAME).h .\inc & del $(IDL_NAME).h