简体   繁体   English

开发Windows设备驱动程序时如何共享源代码

[英]How to share source code when we develop Windows device drivers

TARGETNAME=OneOfMyDrivers TARGETNAME = OneOfMyDrivers
TARGETTYPE=DRIVER TARGETTYPE =驱动程序
INCLUDES=..\\inc; INCLUDES = .. \\ inc; ..\\..\\Common\\Crypto .. \\ .. \\ Common \\ Crypto
TARGETLIBS=$(SDK_LIB_PATH)\\wdmsec.lib TARGETLIBS = $(SDK_LIB_PATH)\\ wdmsec.lib
SOURCES=OneOfMyDrivers.c \\ SOURCES = OneOfMyDrivers.c \\
OneOfMyDrivers.rc\\ OneOfMyDrivers.rc \\
..\\..\\Common \\Crypto\\aes_modes.c \\ .. \\ .. \\ Common \\ Crypto \\ aes_modes.c \\
..\\..\\Common \\Crypto\\aescrypt.c \\ .. \\ .. \\ Common \\ Crypto \\ aescrypt.c \\
..\\..\\Common \\Crypto\\aeskey.c \\ .. \\ .. \\ Common \\ Crypto \\ aeskey.c \\
..\\..\\Common \\Crypto\\aestab.c .. \\ .. \\ Common \\ Crypto \\ aestab.c

Without making a static library(in this case Crypto modules), 无需制作静态库(在本例中为加密模块),
Can I build this makefile in this way. 我可以用这种方式建立这个makefile吗? I don't know why it doesn't work. 我不知道为什么它不起作用。
I want to share the Crypto module's source codes with other drivers(and Apps) 我想与其他驱动程序(和应用程序)共享加密模块的源代码

Is it possible? 可能吗?
Is the only way a making a static library? 制作静态库的唯一方法是吗?

Generally, the correct way to do this is via building a static library. 通常,正确的方法是通过构建静态库。 The DDK build system relies pretty heavily on them for sharing code between modules. DDK构建系统非常依赖它们来在模块之间共享代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM