From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12116 invoked by alias); 29 Dec 2007 17:37:20 -0000 Received: (qmail 12105 invoked by uid 22791); 29 Dec 2007 17:37:19 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.178) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 29 Dec 2007 17:37:09 +0000 Received: by wa-out-1112.google.com with SMTP id m16so5788249waf.20 for ; Sat, 29 Dec 2007 09:37:07 -0800 (PST) Received: by 10.114.125.2 with SMTP id x2mr6701878wac.119.1198949827301; Sat, 29 Dec 2007 09:37:07 -0800 (PST) Received: from ?192.168.2.2? ( [75.80.189.255]) by mx.google.com with ESMTPS id y11sm16578339pod.9.2007.12.29.09.37.04 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Dec 2007 09:37:04 -0800 (PST) User-Agent: Microsoft-Entourage/11.3.3.061214 Date: Sat, 29 Dec 2007 17:37:00 -0000 Subject: Makefile help request (config file) From: Robert Wong To: "gcc-help@gcc.gnu.org" Message-ID: In-Reply-To: <8bc817ee0712061635r2d4b1c7aj5cb61ccb9e4bdb2@mail.gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00441.txt.bz2 In the two attached files: 1.Makefile 2.ct (script file) I am trying to make multiple executables with the name SESC_DRIVER#, where "#" is associated with a different config file for mem-dram-mcsim-interface.o (using mem-dramsim-config-#.h). Right now, I can use the Makefile with the following command line: >make N='#' But each time before I can use that command I must delete the existing mem-dram-mcsim-interface.o otherwise the makefile won't make the mem-dram-mcsim-interface.o with the new mem-dramsim-config-#.h. I tried to write file 2 (ct) to delete the mem-dram-mcsim-interface.o and invoke the make N='#' line but I think the script is having problems recognizing the command line arguments ($1) in the form make N='$1' because of the single quotes. Thanks in advance for any help you can offer. Rob