Windows NT 4.0 source code leak
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.

58 lines
1.6 KiB

4 years ago
  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 = pnp
  9. UNICODE=1
  10. NET_C_DEFINES=-DUNICODE
  11. SDKINC = $(BASEDIR)\public\sdk\inc
  12. PNPINC = inc
  13. SDKCRTINC = $(BASEDIR)\public\sdk\inc\crt
  14. PRIVINC = $(BASEDIR)\private\inc
  15. INCS = -I$(SDKINC) -I$(SDKCRTINC) -I$(PRIVINC) -I$(PNPINC)
  16. CLIENT_TARGETS = cfgmgr32\$(IDL_NAME)_c.c \
  17. inc\$(IDL_NAME).h
  18. SERVER_TARGETS = umpnpmgr\$(IDL_NAME)_s.c
  19. EXTRN_DEPENDS = $(SDKINC)\windef.h \
  20. $(IDL_NAME).acf
  21. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES)
  22. #
  23. # Define Products and Dependencies
  24. #
  25. all: $(CLIENT_TARGETS) $(SERVER_TARGETS) $(EXTRN_DEPENDS)
  26. !IF "$(BUILDMSG)" != ""
  27. @ech ; $(BUILDMSG) ;
  28. !ENDIF
  29. clean: delete_source all
  30. delete_source:
  31. erase $(CLIENT_TARGETS) $(SERVER_TARGETS)
  32. #
  33. # MIDL COMPILE
  34. #
  35. $(CLIENT_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  36. midl -Oi -server none -oldnames -error allocation -error ref -ms_ext -c_ext $(CPP) $(IDL_NAME).idl $(INCS)
  37. IF EXIST $(IDL_NAME)_c.c copy $(IDL_NAME)_c.c cfgmgr32 & del $(IDL_NAME)_c.c
  38. IF EXIST $(IDL_NAME).h copy $(IDL_NAME).h inc & del $(IDL_NAME).h
  39. $(SERVER_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  40. midl -client none -oldnames -error stub_data -error allocation -error ref -ms_ext -c_ext $(CPP) $(IDL_NAME).idl $(INCS)
  41. IF EXIST $(IDL_NAME)_s.c copy $(IDL_NAME)_s.c umpnpmgr\$(IDL_NAME)_s.c & del $(IDL_NAME)_s.c
  42. IF EXIST $(IDL_NAME).h copy $(IDL_NAME).h inc & del $(IDL_NAME).h
  43.