views:

40

answers:

1

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

Without making a static library(in this case Crypto modules),
Can I build this makefile in this way. 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?

+1  A: 

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.

Paul Betts