From aac272ddc043205c15ae0d81322ec3ab692ac180 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Thu, 28 Apr 2016 21:25:32 -0400 Subject: [PATCH] Added initial mount source file --- Makefile | 6 +++++- source/mount.c | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 source/mount.c diff --git a/Makefile b/Makefile index 9f868fee..d0a38e89 100644 --- 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 index 00000000..f6cad0bb --- /dev/null +++ b/source/mount.c @@ -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; +} -- 2.52.0