aboutsummaryrefslogtreecommitdiff
path: root/apps/idle
diff options
context:
space:
mode:
authorMarvin Borner2021-04-05 19:37:28 +0200
committerMarvin Borner2021-04-05 19:37:28 +0200
commitccc1dd7b4ba8ad5efe51aac32b26f0859d93fbe5 (patch)
treedf0e8330b14cea9ed0dd6546f69be24996f52a80 /apps/idle
parent1f957aafa4423c1579627a279d861d03d76f3dbb (diff)
Restructured make layout and cleaned some apps
Diffstat (limited to 'apps/idle')
-rw-r--r--apps/idle/Makefile12
-rw-r--r--apps/idle/idle.c16
2 files changed, 28 insertions, 0 deletions
diff --git a/apps/idle/Makefile b/apps/idle/Makefile
new file mode 100644
index 0000000..3060ae3
--- /dev/null
+++ b/apps/idle/Makefile
@@ -0,0 +1,12 @@
+# MIT License, Copyright (c) 2021 Marvin Borner
+
+OBJS = idle.o
+
+all: $(OBJS)
+ @$(LD) -o $(BUILD)/apps/idle $(LDFLAGS) $< -lc
+
+clean:
+ @$(RM) -f $(OBJS)
+
+%.o: %.c
+ @$(CC) -c $(CFLAGS) $< -o $@
diff --git a/apps/idle/idle.c b/apps/idle/idle.c
new file mode 100644
index 0000000..43186ff
--- /dev/null
+++ b/apps/idle/idle.c
@@ -0,0 +1,16 @@
+// MIT License, Copyright (c) 2021 Marvin Borner
+
+#include <def.h>
+
+int main(int argc, char **argv)
+{
+ UNUSED(argc);
+ UNUSED(argv);
+
+ // Just chillin'
+ while (1)
+ ;
+ /* __asm__ volatile("hlt"); */
+
+ return 0;
+}