summaryrefslogtreecommitdiff
path: root/Unix/src
diff options
context:
space:
mode:
Diffstat (limited to 'Unix/src')
-rwxr-xr-xUnix/src/make.sh4
-rwxr-xr-xUnix/src/testbin0 -> 203505 bytes
-rw-r--r--Unix/src/test.c6
3 files changed, 10 insertions, 0 deletions
diff --git a/Unix/src/make.sh b/Unix/src/make.sh
new file mode 100755
index 0000000..2adce4e
--- /dev/null
+++ b/Unix/src/make.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gcc -c test.c -o test.o -I../i686-elf/include
+ld test.o ../i686-elf/lib/libc.a -T ../../Source/UnixUserland/App.ld -L ../../Source/UnixUserland -o test
diff --git a/Unix/src/test b/Unix/src/test
new file mode 100755
index 0000000..aefa88e
--- /dev/null
+++ b/Unix/src/test
Binary files differ
diff --git a/Unix/src/test.c b/Unix/src/test.c
new file mode 100644
index 0000000..f76aac7
--- /dev/null
+++ b/Unix/src/test.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+ printf("Hi, world !");
+ return 0;
+}