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.

66 lines
2.0 KiB

  1. !INCLUDE $(NTMAKEENV)\makefile.plt
  2. FULLTARGET=$(_OBJ_DIR)\$(TARGET_DIRECTORY)
  3. # this file is a database created by sortpp.exe after it scans the c-preprocessed
  4. # version of headers.h. genthnk.exe consumes it to generate thunks.
  5. PPMFILE=$(FULLTARGET)\winincs.ppm
  6. # list of APIs to actually thunk.
  7. APILIST=api.lst
  8. # the script to build autogenerated source files for getthnk
  9. BLDFILES=.\bldfiles.pl
  10. # These are the files that are to be generated by BLDFILES
  11. APILISTW=$(FULLTARGET)\unicows.lst
  12. FIXAW=$(FULLTARGET)\fixaw.h
  13. DEFFILE=unicows.def
  14. # name of generated .c files
  15. GENFILE=Win9xU.c
  16. FAILFILE=..\Failure.c
  17. FAILFILEHEADER=..\Failure.h
  18. CXX_COMPILER_NAME=$(CXX_COMPILER_NAME) -noHRESULT -DIN=__in -DOUT=__out
  19. CPP_FLAGS=$(WOW64_CPP_FLAGS) -DSORTPP_PASS -DGUID_DEFINED
  20. $(FULLTARGET)\winincs.pp: winincs.cpp headers.h
  21. -mkdir $(FULLTARGET)
  22. $(CXX_COMPILER_NAME) $(WOW64_CPP_FLAGS) /C @<<$(FULLTARGET)\cl.rsp /E /FC winincs.cpp >$(FULLTARGET)\winincs2.pp
  23. $(CXX_COMPILER_FLAGS: =
  24. )
  25. <<NOKEEP
  26. idlclean.exe $(FULLTARGET)\winincs2.pp $(FULLTARGET)\winincs2.cpp
  27. $(CXX_COMPILER_NAME) @<<cl.rsp /E /FC $(FULLTARGET)\winincs2.cpp >$(FULLTARGET)\winincs.pp
  28. $(CXX_COMPILER_FLAGS: =
  29. )
  30. <<NOKEEP
  31. $(APILISTW) $(FIXAW) $(DEFFILE) : $(APILIST) $(BLDFILES)
  32. perl.exe $(BLDFILES) $**
  33. $(PPMFILE): $(FULLTARGET)\winincs.pp
  34. sortpp.exe $(SORTPP_FLAGS) -m$(PPMFILE) $(FULLTARGET)\winincs.pp
  35. $(GENFILE): $(PPMFILE) unicows.tpl $(APILISTW)
  36. genthnk.exe -m$(PPMFILE) -tunicows.tpl -c$(GENFILE):UnicodeWrappers -E$(APILISTW)
  37. $(FAILFILE): $(PPMFILE) failure.tpl $(APILISTW)
  38. genthnk.exe -m$(PPMFILE) -tfailure.tpl -c$(FAILFILE):FailWrappers -E$(APILISTW)
  39. $(FAILFILEHEADER): $(PPMFILE) failure.tpl $(APILISTW)
  40. genthnk.exe -m$(PPMFILE) -tfailure.tpl -c$(FAILFILEHEADER):FailWrapperHeaders -E$(APILISTW)
  41. thunks: $(PPMFILE) $(FIXAW) $(GENFILE) $(FAILFILE) $(FAILFILEHEADER)
  42. cleanfiles:
  43. -del $(FAILFILEHEADER)
  44. -del $(FAILFILE)
  45. -del $(GENFILE)
  46. -del $(PPMFILE)
  47. -del $(APILISTW)
  48. -del $(FIXAW)
  49. -del $(DEFFILE)
  50. clean: cleanfiles thunks