From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7352 invoked by alias); 20 Oct 2003 12:10:09 -0000 Mailing-List: contact ecos-devel-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@sources.redhat.com Received: (qmail 7337 invoked from network); 20 Oct 2003 12:10:08 -0000 Subject: Conditional compilation From: Gary Thomas To: eCos development Content-Type: text/plain Organization: MLB Associates Message-Id: <1066651807.29481.21.camel@hermes> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: Mon, 20 Oct 2003 12:10:00 -0000 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,UPPERCASE_25_50,USER_AGENT_XIMIAN version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-SW-Source: 2003-10/txt/msg00035.txt.bz2 I have a device which can be configured one of two ways. I need a separate driver file (this is for MicroWindows, trying to decide between a mouse and a touch screen). Is there a better way to handle this than how I've done it? cdl_component CYGBLD_MICROWINDOWS_PROT732_MOUSE_DRIVER { display "Mouse selection" legal_values { "pc" "ms" "logi" "ps2" "ts" } default_value { "logi" } cdl_option CYGBLD_MICROWINDOWS_PROT732_MOUSE_DRIVER_MOUSE { description "Use mouse on PS/2 port" calculated { CYGBLD_MICROWINDOWS_PROT732_MOUSE_DRIVER != "ts" } no_define compile drivers/mou_ser.c } cdl_option CYGBLD_MICROWINDOWS_PROT732_MOUSE_DRIVER_TOUCH { description "Use touch screen for mouse" calculated { CYGBLD_MICROWINDOWS_PROT732_MOUSE_DRIVER == "ts" } no_define compile drivers/mou_prot732ts.c } } -- Gary Thomas MLB Associates