FW: Makefile help request (config file)
Robert Wong
subdriver97@gmail.com
Sat Dec 29 17:42:00 GMT 2007
Probably help if I attached the files...
------ Forwarded Message
From: Robert Wong <subdriver97@gmail.com>
Date: Sat, 29 Dec 2007 09:37:02 -0800
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Conversation: Makefile help request (config file)
Subject: Makefile help request (config file)
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
------ End of Forwarded Message
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ct
Type: application/octet-stream
Size: 62 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20071229/1e428507/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 4061 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20071229/1e428507/attachment-0003.obj>
More information about the Gcc-help
mailing list