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.

46 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. IDL_NAME = regrpc
  9. INCS =-I$(SDK_INC_PATH) -I$(CRT_INC_PATH) -I$(WINDOWS_INC_PATH)
  10. TARGETS = client\$(IDL_NAME)_c.c \
  11. server\$(IDL_NAME)_s.c \
  12. .\$(IDL_NAME).h
  13. EXTRN_DEPENDS = $(SDK_INC_PATH)\windef.h \
  14. $(IDL_NAME).acf \
  15. imports.idl \
  16. imports.h
  17. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES)
  18. #
  19. # Define Products and Dependencies
  20. #
  21. all: $(TARGETS) $(EXTRN_DEPENDS)
  22. !IF "$(BUILDMSG)" != ""
  23. @ech ; $(BUILDMSG) ;
  24. !ENDIF
  25. clean: delsrc all
  26. delsrc:
  27. erase $(TARGETS)
  28. #
  29. # MIDL COMPILE
  30. #
  31. $(TARGETS) : .\$(IDL_NAME).idl $(EXTRN_DEPENDS)
  32. midl $(MIDL_OPTIMIZATION) -oldnames -ms_ext -c_ext $(CPP) $(INCS) .\$(IDL_NAME).idl
  33. IF EXIST $(IDL_NAME)_c.c copy $(IDL_NAME)_c.c .\client & del $(IDL_NAME)_c.c
  34. IF EXIST $(IDL_NAME)_s.c copy $(IDL_NAME)_s.c .\server & del $(IDL_NAME)_s.c