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.

91 lines
2.3 KiB

  1. #############################################################################
  2. #
  3. # Microsoft Confidential
  4. # Copyright (C) Microsoft Corporation 1992
  5. # All Rights Reserved.
  6. #
  7. # Makefile for $(PROJ)
  8. #
  9. #############################################################################
  10. # We must be Win95-compatible
  11. PROJ=HIDTEST
  12. ROOT=..\..\..\..\..
  13. SRCDIR=..
  14. LIBDIR=$(SRCDIR)\lib
  15. IS_32=TRUE
  16. IS_SDK=TRUE
  17. IS_PRIVATE=TRUE # IToClass
  18. DEPENDNAME=..\depend.mk
  19. WANT_C1132=TRUE
  20. BUILD_COFF=TRUE
  21. BUILDDLL=TRUE
  22. L32EXE=$(PROJ).DLL
  23. L32DEF=$(SRCDIR)\$(PROJ).DEF
  24. L32RES=$(PROJ).RES
  25. L32MAP=$(PROJ).MAP
  26. DLLENTRY=DllMain
  27. DEFENTRY=DllMain
  28. L32FLAGS= -entry:$(DLLENTRY) -def:$(L32DEF) $(L32FLAGS)
  29. L32OBJS=hidtest.obj log.obj handle.obj buffer.obj
  30. TARGETS=$(L32EXE)
  31. LIBNAME=$(LIBDIR)\$(PROJ).LIB
  32. LIBOBJS=hidtest.obj log.obj handle.obj buffer.obj
  33. L32FLAGS= $(L32FLAGS) -implib:$(LIBNAME)
  34. #
  35. # Create the lib directory if it doesn't already exist
  36. #
  37. doall: $(LIBDIR) $(L32EXE)
  38. $(LIBDIR):
  39. if not exist $(LIBDIR)\nul mkdir $(LIBDIR)
  40. L32LIBSNODEP=\
  41. kernel32.lib \
  42. advapi32.lib \
  43. user32.lib \
  44. shell32.lib \
  45. comctl32.lib \
  46. gdi32.lib \
  47. mpr.lib \
  48. uuid.lib \
  49. $(ROOT)\dev\tools\c932\lib\crtdll.lib \
  50. $(ROOT)\wdm10\ddk\lib\i386\hid.lib \
  51. $(ROOT)\wdm10\ddk\lib\i386\hidclass.lib \
  52. $(ROOT)\dev\lib\setupapi.lib \
  53. $(SRCDIR)\ntlog.lib \
  54. $(ROOT)\wdm10\input\client\client.lib\lib\clntlib.lib
  55. # I hate includes.exe
  56. #
  57. # Must manually exclude all the random header files that never change.
  58. #
  59. # And it still doesn't generate the dependency for the .rc file properly,
  60. # so
  61. #
  62. # WARNING WARNING WARNING
  63. #
  64. # After an "nmake depend", append the following lines to depend.mk by hand:
  65. #
  66. # $(OBJDIR)\sendtox.res: ..\sendtox.rc ..\stx.h
  67. #
  68. #INCFLAGS=$(INCFLAGS) -nwindows.h -noleidl.h -nwindowsx.h -nshlobj.h -nshellapi.h -nshell2.h -nprsht.h -nstdarg.h
  69. # L32FLAGS=$(L32FLAGS) -base:0x403F0000
  70. !include $(ROOT)\dev\master.mk
  71. INCLUDE=$(SRCDIR)\inc;$(SRCDIR)\..\client.lib\inc;$(SRCDIR)\..\..\hidparse;..\..\..\inc;$(SRCDIR)\..\..\..\ddk\inc;$(ROOT)\win\core\shell\inc;$(INCLUDE)
  72. CFLAGS=$(CFLAGS) -YX -Zp1 -Oxs -W3 -Gz -GF