WPP -preserveext:.ext1???

Hello,

What's the trick to get preserveext: to work? I just copied the sample
command in DDK documentation but it doesn't work for me. I'm sure I must
have missed something obvious.

Basically, I have a nuts.h and nuts.c. The header is precompiled. I want
to get "nuts.h.tmh" and "nuts.c.tmh" but the WPP refuses to generate
them (still generating nuts.tmh)

snippet of sources file

SOURCES=nuts.c nuts.h

RUN_WPP= $(SOURCES) -km -ext:.c.C.h.H -preserveext:.c.h \
$(WPP_FUNCTIONS)

Thanks,

Calvin Guan (DDK MVP)
Sr. Staff Engineer
NetXtreme Vista/LH Server Miniport
Broadcom Corporation
Connecting Everything(r)

This is what KMDF uses in its project.mk file (at the root of our
sources)

PROJECT_WPP_HEADERS= \
<br> … <br>

RUN_WPP= <br> -ext:.cpp.h.hpp -preserveext:.h.hpp $(PROJECT_WPP_HEADERS)
$(LOCAL_WPP_HEADERS) <br> …

And each sub directory creates a lib whose sources file can optionally
define LOCAL_WPP_HEADERS

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin (Hao)
Guan
Sent: Monday, December 11, 2006 5:05 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] WPP -preserveext:.ext1???

Hello,

What’s the trick to get preserveext: to work? I just copied the sample
command in DDK documentation but it doesn’t work for me. I’m sure I must
have missed something obvious.

Basically, I have a nuts.h and nuts.c. The header is precompiled. I want
to get “nuts.h.tmh” and “nuts.c.tmh” but the WPP refuses to generate
them (still generating nuts.tmh)

## snippet of sources file
SOURCES=nuts.c nuts.h

RUN_WPP= $(SOURCES) -km -ext:.c.C.h.H -preserveext:.c.h <br> $(WPP_FUNCTIONS)

Thanks,

Calvin Guan (DDK MVP)
Sr. Staff Engineer
NetXtreme Vista/LH Server Miniport
Broadcom Corporation
Connecting Everything(r)


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer