aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/Makefile7
-rw-r--r--usr.sbin/init/Makefile8
-rw-r--r--usr.sbin/init/main.c6
3 files changed, 21 insertions, 0 deletions
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
new file mode 100644
index 0000000..c75ebd0
--- /dev/null
+++ b/usr.sbin/Makefile
@@ -0,0 +1,7 @@
+CC =
+LD =
+LDSO =
+
+.PHONY: all
+all:
+ cd init/; make LDSO=$(LDSO) CC=$(CC) LD=$(LD)
diff --git a/usr.sbin/init/Makefile b/usr.sbin/init/Makefile
new file mode 100644
index 0000000..fa65c8d
--- /dev/null
+++ b/usr.sbin/init/Makefile
@@ -0,0 +1,8 @@
+CC =
+LD =
+LDSO =
+
+.PHONY: all
+all:
+ $(CC) -c main.c -o main.o;
+ $(LD) --dynamic-linker /usr/lib/ld.so $(LDSO) main.o -o init -e main
diff --git a/usr.sbin/init/main.c b/usr.sbin/init/main.c
new file mode 100644
index 0000000..af62d76
--- /dev/null
+++ b/usr.sbin/init/main.c
@@ -0,0 +1,6 @@
+int
+main(void)
+{
+ /* Do nothing */
+ while (1);
+}