From ccc1dd7b4ba8ad5efe51aac32b26f0859d93fbe5 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 5 Apr 2021 19:37:28 +0200 Subject: Restructured make layout and cleaned some apps --- apps/init/Makefile | 12 ++++++++++++ apps/init/init.c | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 apps/init/Makefile create mode 100644 apps/init/init.c (limited to 'apps/init') diff --git a/apps/init/Makefile b/apps/init/Makefile new file mode 100644 index 0000000..7dec3e8 --- /dev/null +++ b/apps/init/Makefile @@ -0,0 +1,12 @@ +# MIT License, Copyright (c) 2021 Marvin Borner + +OBJS = init.o + +all: $(OBJS) + @$(LD) -o $(BUILD)/apps/init $(LDFLAGS) $< -lc + +clean: + @$(RM) -f $(OBJS) + +%.o: %.c + @$(CC) -c $(CFLAGS) $< -o $@ diff --git a/apps/init/init.c b/apps/init/init.c new file mode 100644 index 0000000..a7d07df --- /dev/null +++ b/apps/init/init.c @@ -0,0 +1,16 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + +#include +#include +#include + +int main(int argc, char **argv) +{ + UNUSED(argc); + UNUSED(argv); + + assert(exec("/bin/wm", "wm", NULL) == EOK); + /* assert(exec("/bin/chess", "chess", NULL) == EOK); */ + + return 0; +} -- cgit v1.2.3