]> git.mdlowis.com Git - proto/albase.git/commitdiff
Added initial mount source file
authorMichael D. Lowis <mike@mdlowis.com>
Fri, 29 Apr 2016 01:25:32 +0000 (21:25 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Fri, 29 Apr 2016 01:25:32 +0000 (21:25 -0400)
Makefile
source/mount.c [new file with mode: 0644]

index 9f868fee1599a22b6a39ef1a8670a95df449c504..d0a38e894c375b9a603057f39aae6dd01b56be13 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ DEFS     = -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L
 CPPFLAGS = $(INCS) $(DEFS)
 CFLAGS   = -O2
 LDFLAGS  = $(LIBS)
-BUILD    = $(CC) $(CPPFLAGS) $(CFLAGS) -o $(BINDIR)/$@ $^
+BUILD    = $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
 
 # dirs
 BUILDDIR = build
@@ -26,6 +26,7 @@ BINS =              \
     $(BINDIR)/getty \
     $(BINDIR)/login \
     $(BINDIR)/dmesg \
+    $(BINDIR)/mount \
     $(BINDIR)/sh
 
 # load user-specific settings
@@ -53,6 +54,9 @@ $(BINDIR)/login: source/login.c
 $(BINDIR)/dmesg: source/dmesg.c
        $(BUILD)
 
+$(BINDIR)/mount: source/mount.c
+       $(BUILD)
+
 include source/sh/Rules.mk
 
 clean:
diff --git a/source/mount.c b/source/mount.c
new file mode 100644 (file)
index 0000000..f6cad0b
--- /dev/null
@@ -0,0 +1,34 @@
+/**
+  @brief
+  @author Michael D. Lowis
+  @license BSD 2-clause License
+*/
+#include "util.h"
+
+//a
+//o
+//t
+//d
+//f
+//r
+//u
+//v
+//w
+//
+//B
+//M
+//R
+//a
+//o
+//t
+//n
+
+char* ARGV0;
+
+int main(int argc, char** argv) {
+    OPTBEGIN {
+        default:
+            break;
+    } OPTEND;
+    return 0;
+}