Hi, dear all,
in the win ce .net help doc says :
============================================
Conditional statements in sources files are not supported.
The following code example shows that Build.exe ignores
the first, second, fourth, and sixth lines, and appends
the SOURCES macro twice.
# Bad example
!IF "$(LOCALE)" == "0409"
SOURCES= $(SOURCES) us-src.c
!ELSE
SOURCES= $(SOURCES) inter-src.c
!ENDIF
====================================
However, !IF and !ELSE is used in every sample source
files. for example :
===================================
DOSYSGEN=1
!IFDEF DOSYSGEN
TARGETNAME = KBDHID_LIB
TARGETTYPE = LIBRARY
TARGETDEFNAME = KBDHID
DEFFILE=$(TARGETDEFNAME).def
WINCETARGETFILE0=$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)
\$(TARGETDEFNAME).def
!ELSE
TARGETNAME = KBDHID
TARGETTYPE = DYNLINK
TARGETLIBS = \
$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \
DLLENTRY = DllEntry
!ENDIF
SOURCES= \
kbdhid.cpp \
kbd.cpp \
=======================================
What is this going on?
Is this the reason that I only get KBDHID_LIB.lib, but
doesn't get KBDHID.dll?
But it seems not.
Help, I just can't get my kbdhid.dll
KY