summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmos Jianjun Kong <kongjianjun@gmail.com>2023-12-17 14:12:39 +0000
committerAmos Kong <amos@sietium.com>2023-12-17 23:19:07 +0800
commit37d3fca21176ea2d66937dc97dfafa8a291c9c0c (patch)
treeef64c0884776c28b2089122c0dbedcc309099832
downloadconfig-samples-37d3fca21176ea2d66937dc97dfafa8a291c9c0c.tar.gz
config-samples-37d3fca21176ea2d66937dc97dfafa8a291c9c0c.tar.xz
config-samples-37d3fca21176ea2d66937dc97dfafa8a291c9c0c.zip
init the project
Signed-off-by: Amos Jianjun Kong <kongjianjun@gmail.com>
-rw-r--r--hello-c/Makefile4
-rw-r--r--hello-c/hello.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/hello-c/Makefile b/hello-c/Makefile
new file mode 100644
index 0000000..376cafd
--- /dev/null
+++ b/hello-c/Makefile
@@ -0,0 +1,4 @@
+all:
+ gcc hello.c -o hello
+cleaup:
+ rm -f ./hello
diff --git a/hello-c/hello.c b/hello-c/hello.c
new file mode 100644
index 0000000..f12c0e8
--- /dev/null
+++ b/hello-c/hello.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main(void)
+{
+ printf("hello, world!\n");
+ return 0;
+}