<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/mkconfig/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/mkconfig/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 28 Sep 2020 17:55:02 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mkconfig/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Brad Lanam</title><link>https://sourceforge.net/p/mkconfig/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -74,21 +74,9 @@
 output  hello.env

 # starting with version 2.4 only standard_system is needed
-#standard_system
-system type
-system rev
-system arch
-# end
+standard_system
 # starting with version 2.4 only standard_cc is needed
-#standard_cc
-cc
-using_gcc
-using_gnu_ld
-using_clang
-using_cplusplus
-cflags
-ldflags
-# end
+standard_cc
 libs
 extension obj
 extension exe
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Mon, 28 Sep 2020 17:55:02 -0000</pubDate><guid>https://sourceforge.net32c212598a6952ac1727eedb4b70309fd54b495b</guid></item><item><title>Home modified by Brad Lanam</title><link>https://sourceforge.net/p/mkconfig/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,3 +1,5 @@
+An example using mkconfig to build a very simple program.
+
 **Makefile**
 ~~~
 # Example Makefile
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Wed, 10 Jun 2020 15:31:14 -0000</pubDate><guid>https://sourceforge.net860412b1264b99efd4f3a3cb96457e6b024ec94d</guid></item><item><title>Home modified by Brad Lanam</title><link>https://sourceforge.net/p/mkconfig/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,106 @@
-Welcome to your wiki!
+**Makefile**
+~~~
+# Example Makefile
+#
+# OBJ_EXT and EXE_EXT are used for portability to windows.
+#

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+MKC_DIR = ../..
+OBJ_EXT = .o
+EXE_EXT =
+MKC_REQLIB = hello.reqlibs

-The wiki uses [Markdown](/p/mkconfig/wiki/markdown_syntax/) syntax.
+# executable
+hello$(EXE_EXT):                $(MKC_REQLIB) hello$(OBJ_EXT)
+        @. ./hello.env;$(_MKCONFIG_SHELL) \
+                $(MKC_DIR)/mkc.sh -link -exec -r $(MKC_REQLIB) \
+                -o hello$(EXE_EXT) hello$(OBJ_EXT)

-[[members limit=20]]
-[[download_button]]
+# object files
+hello$(OBJ_EXT):        config.h
+        @. ./hello.env;$(_MKCONFIG_SHELL) $(MKC_DIR)/mkc.sh -compile \
+                -o hello$(OBJ_EXT) hello.c
+
+# required libraries
+# for this example, there are none.
+$(MKC_REQLIB):  config.h
+        @$(_MKCONFIG_SHELL) $(MKC_DIR)/mkc.sh -reqlib \
+                -o $(MKC_REQLIB) config.h
+
+# config.h file created by mkconfig
+config.h:       hello.env hello.mkc
+        . ./hello.env; \
+                CC=$(CC) $(_MKCONFIG_SHELL) $(MKC_DIR)/mkconfig.sh hello.mkc
+
+# environment variables created by mkconfig
+hello.env:      env.mkc
+        CC=$(CC) $(_MKCONFIG_SHELL) $(MKC_DIR)/mkconfig.sh env.mkc
+
+.PHONY: clean
+clean:
+        @-rm -f mkc_* mkconfig.cache mkconfig.log \
+                hello.env config.h $(MKC_REQLIB) \
+                hello$(EXE_EXT) hello$(OBJ_EXT) \
+                *~
+~~~
+
+**hello.c**
+~~~
+#include "config.h"
+
+#include &amp;lt;stdio.h&amp;gt;
+#include &amp;lt;stdlib.h&amp;gt;
+#ifdef _hdr_string
+# include &amp;lt;string.h&amp;gt;
+#endif
+
+int main (int argc, char *argv[])
+{
+  printf ("hello world\n");
+}
+~~~
+
+**env.mkc**
+~~~
+# configuration to set up the build environment
+
+loadunit env-main
+loadunit env-systype
+loadunit env-cc
+loadunit env-extension
+
+output  hello.env
+
+# starting with version 2.4 only standard_system is needed
+#standard_system
+system type
+system rev
+system arch
+# end
+# starting with version 2.4 only standard_cc is needed
+#standard_cc
+cc
+using_gcc
+using_gnu_ld
+using_clang
+using_cplusplus
+cflags
+ldflags
+# end
+libs
+extension obj
+extension exe
+~~~
+
+
+**hello.mkc**
+~~~
+# configuration for hello.c
+
+loadunit c-main
+output config.h
+
+standard
+
+hdr string.h
+~~~
&amp;lt;/string.h&amp;gt;&amp;lt;/stdlib.h&amp;gt;&amp;lt;/stdio.h&amp;gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Wed, 10 Jun 2020 15:30:18 -0000</pubDate><guid>https://sourceforge.neta7100ce241d375bf4e4a1eb81abbe12ff11fd135</guid></item><item><title>Home modified by Brad Lanam</title><link>https://sourceforge.net/p/mkconfig/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/mkconfig/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
	&lt;ul class="md-users-list"&gt;
		&lt;li&gt;&lt;a href="/u/bll123/"&gt;Brad Lanam&lt;/a&gt; (admin)&lt;/li&gt;
		
	&lt;/ul&gt;&lt;br/&gt;
&lt;p&gt;&lt;span class="download-button-5ac797498b14711086b63927" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Wed, 10 Jun 2020 15:28:02 -0000</pubDate><guid>https://sourceforge.net89d5bf95fe65ee836748a5128ce442d545149f81</guid></item></channel></rss>