473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Query: how to set #define values in parameters of 'make'

I have a _TEST_ flag that I want to sometimes set for compilation,
e.g.

#if _TEST_
#include "MyTestInterface.h"
#else
#include "MyRealInterface.h"
#endif

But I am in a version-controlled environment where there is a time
penalty for checking out/checking in the source file or makefile. Is
there any way I can say something like

make -D_TEST_=1

to set the value of _TEST_ for a single build?
Thanks

tr**********@deletethispart.yahoo.co.uk
Jul 22 '05 #1
3 1596

"Tropos" <tr**********@yahoo.co.uk> wrote in message
I have a _TEST_ flag that I want to sometimes set for compilation,
e.g.

#if _TEST_
#include "MyTestInterface.h"
#else
#include "MyRealInterface.h"
#endif

But I am in a version-controlled environment where there is a time
penalty for checking out/checking in the source file or makefile. Is
there any way I can say something like

make -D_TEST_=1

to set the value of _TEST_ for a single build?


This if offtopic here. But there is a way to achieve what you want. Ask in
news:news.gcc.help

Sharad
Jul 22 '05 #2
Tropos wrote:
I have a _TEST_ flag that I want to sometimes set for compilation,
e.g.

#if _TEST_
#include "MyTestInterface.h"
#else
#include "MyRealInterface.h"
#endif

But I am in a version-controlled environment where there is a time
penalty for checking out/checking in the source file or makefile. Is
there any way I can say something like

make -D_TEST_=1

to set the value of _TEST_ for a single build?


<OT>

http://www.gnu.org/software/make/man..._9.html#SEC100
</OT>

--
Lionel B

Jul 22 '05 #3
"Sharad Kala" <no*****************@yahoo.com> wrote in message news:<31*************@uni-berlin.de>...
"Tropos" <tr**********@yahoo.co.uk> wrote in message
I have a _TEST_ flag that I want to sometimes set for compilation,
e.g.

#if _TEST_
#include "MyTestInterface.h"
#else
#include "MyRealInterface.h"
#endif

But I am in a version-controlled environment where there is a time
penalty for checking out/checking in the source file or makefile. Is
there any way I can say something like

make -D_TEST_=1

to set the value of _TEST_ for a single build?


This if offtopic here. But there is a way to achieve what you want. Ask in
news:news.gcc.help

Sharad


I'm not using gcc. This is the standard 'make' with the SunOS compiler.

Tropos
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bruno Alexandre | last post by:
Hi guys, withou using SP, I want to be able to add a Parameter to the SQL Query and retrive the Recordset so I can use the Paging property under the recorset object.... how can I do this? I'm...
11
by: Eugenio | last post by:
Excuse me in advance fo my little English. I've got this stored procedure **************************************************************************** ********** declare @Azienda as...
3
by: Ryan Hubbard | last post by:
I would like to run a query from VBA. The query will be one with parameters. Is there a way to run the query and have Access prompt for the values like it does if I where to execute it through...
15
by: Jean | last post by:
Hello, I have the following query that I set up as a test, and it runs fine: SELECT STATUSHISTORIE.* FROM STATUSHISTORIE LEFT JOIN PROBLEM_DE ON STATUSHISTORIE.PROBLEM_ID =...
1
by: aleicaro | last post by:
Hi, I have a problem with db2 query... I access to my database via jdbc using com.ibm.db2.jcc.DB2Driver. I build my string query in a java class. I have some parameters in my query, but there are...
6
by: lesperancer | last post by:
SELECT distinct b.t_orno, b.t_pono FROM tblMonthlyBooking AS b, tblFilterDate, tblFilterDate AS tblFilterDate_1 WHERE (((b.t_yearMonth) Between . And .)); tblMonthlyBooking is a sql server...
4
by: Macroman | last post by:
MS Access XP, running on Win XP, Processor 2.4Ghz , 512Mb RAM, 40Gb Hard drive Table 1 has 167,000 records and contains the following fields tblone_custID tblone_easting tblone_northing ...
29
by: wizofaus | last post by:
I previously posted about a problem where it seemed that changing the case of the word "BY" in a SELECT query was causing it to run much much faster. Now I've hit the same thing again, where...
36
by: James Harris | last post by:
Initial issue: read in an arbitrary-length piece of text. Perceived issue: handle variable-length data The code below is a suggestion for implementing a variable length buffer that could be used...
4
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.