<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[make &#x2F; defines &#x2F; makefiles]]></title><description><![CDATA[<p>Hi Leute,<br />
ich habe eine Frage. Angenommen ich habe eine Konstante:</p>
<p>const int MAXTEMP = 1234; // in der Const.h zb</p>
<p>Wenn überhaupt, wie könnte man die 1234 PER KOMPILER vorab ändern, so dass es ein</p>
<p>make // für den &quot;normalen&quot; wert 1234<br />
oder<br />
make extrem // so dass MAXTEMP zb 2345 beim kompilieren ist.<br />
Geht das mit #defines??? was für Möglichkeiten kennt Ihr?</p>
<p>Danke - the ape</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/273643/make-defines-makefiles</link><generator>RSS for Node</generator><lastBuildDate>Fri, 28 Aug 2026 00:26:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/273643.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Sep 2010 12:22:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to make &#x2F; defines &#x2F; makefiles on Fri, 10 Sep 2010 12:22:16 GMT]]></title><description><![CDATA[<p>Hi Leute,<br />
ich habe eine Frage. Angenommen ich habe eine Konstante:</p>
<p>const int MAXTEMP = 1234; // in der Const.h zb</p>
<p>Wenn überhaupt, wie könnte man die 1234 PER KOMPILER vorab ändern, so dass es ein</p>
<p>make // für den &quot;normalen&quot; wert 1234<br />
oder<br />
make extrem // so dass MAXTEMP zb 2345 beim kompilieren ist.<br />
Geht das mit #defines??? was für Möglichkeiten kennt Ihr?</p>
<p>Danke - the ape</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1950833</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1950833</guid><dc:creator><![CDATA[ape_ickx]]></dc:creator><pubDate>Fri, 10 Sep 2010 12:22:16 GMT</pubDate></item><item><title><![CDATA[Reply to make &#x2F; defines &#x2F; makefiles on Fri, 10 Sep 2010 12:34:56 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#if CONST_VALUE == 1
const int FOO = 1;
#elif CONST_VALUE == 2
const int FOO = 2;
#else
const int FOO = 3;
#endif
</code></pre>
<p>Im makefile als compilerschalter:<br />
-DCONST_VALUE=X<br />
Wo X für den Wert steht.<br />
rya.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1950843</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1950843</guid><dc:creator><![CDATA[scorcher24@public.pc]]></dc:creator><pubDate>Fri, 10 Sep 2010 12:34:56 GMT</pubDate></item><item><title><![CDATA[Reply to make &#x2F; defines &#x2F; makefiles on Fri, 10 Sep 2010 12:37:40 GMT]]></title><description><![CDATA[<p>oder gar</p>
<pre><code class="language-cpp">#ifndef CONST_VALUE
#define CONST_VALUE &lt;default&gt;
#endif

const int Foo = CONST_VALUE;
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1950846</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1950846</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Fri, 10 Sep 2010 12:37:40 GMT</pubDate></item></channel></rss>