From 868cfb09cdc5b8c19d9d40f4a88ff6bec08c63fc Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 2 Oct 2021 15:32:24 +0200 Subject: add hello world --- .gitignore | 2 ++ .gitmodules | 6 ++++++ icli | 1 + main.c | 6 ++++++ makefile | 20 ++++++++++++++++++++ rpiCC2500 | 1 + 6 files changed, 36 insertions(+) create mode 100644 .gitmodules create mode 160000 icli create mode 100644 main.c create mode 100644 makefile create mode 160000 rpiCC2500 diff --git a/.gitignore b/.gitignore index 99ed0d4..4135328 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ notes.txt +*.o +lincoln diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b30d4ef --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "icli"] + path = icli + url = https://github.com/v3io/icli +[submodule "rpiCC2500"] + path = rpiCC2500 + url = https://github.com/alexbirkett/rpiCC2500 diff --git a/icli b/icli new file mode 160000 index 0000000..d7a6a81 --- /dev/null +++ b/icli @@ -0,0 +1 @@ +Subproject commit d7a6a815f8e5b059433b60d0783514bcc5a9d47a diff --git a/main.c b/main.c new file mode 100644 index 0000000..e6a5b85 --- /dev/null +++ b/main.c @@ -0,0 +1,6 @@ +#include + +int main() { + printf("Hello world\n"); + return 0; +} diff --git a/makefile b/makefile new file mode 100644 index 0000000..77e2546 --- /dev/null +++ b/makefile @@ -0,0 +1,20 @@ +CC = gcc +LD = gcc +RM = rm -f +CFLAGS = + +OBJECTS := $(patsubst %.c,%.o, *.c) + +all: lincoln + +%.o: %.c + $(CC) -static -c $< $(CFLAGS) + +lincoln: $(OBJECTS) + $(CC) $(OBJECTS) $(CFLAGS) -o lincoln + +clean: + $(RM) + +distclean: clean + $(RM) *.o diff --git a/rpiCC2500 b/rpiCC2500 new file mode 160000 index 0000000..6471cae --- /dev/null +++ b/rpiCC2500 @@ -0,0 +1 @@ +Subproject commit 6471cae26caccac1c89b9083f6208fa84e085eb1 -- cgit v1.2.3