aboutsummaryrefslogtreecommitdiff
path: root/bts
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-11-08 16:20:55 +0100
committerlonkaars <loek@pipeframe.xyz>2022-11-08 16:20:55 +0100
commit2784261e7b83b9549c5e2ba0913303d695493456 (patch)
treee973ab0e46823c86aeecfc153f7f7b97b51e6139 /bts
parentacbc6ee608bc7d9ec33ddf57719841335eff70b1 (diff)
project scaffolding and architecture draft in readme
Diffstat (limited to 'bts')
-rw-r--r--bts/main.c7
-rw-r--r--bts/makefile24
2 files changed, 31 insertions, 0 deletions
diff --git a/bts/main.c b/bts/main.c
new file mode 100644
index 0000000..1be969b
--- /dev/null
+++ b/bts/main.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main() {
+ printf("hello world!\n");
+
+ return 0;
+}
diff --git a/bts/makefile b/bts/makefile
new file mode 100644
index 0000000..e646524
--- /dev/null
+++ b/bts/makefile
@@ -0,0 +1,24 @@
+CC = gcc
+LD = gcc
+RM = rm -f
+CFLAGS =
+LFLAGS =
+TARGET = bts
+
+SRCS := $(wildcard *.c)
+OBJS := $(patsubst %.c,%.o, $(SRCS))
+
+all: $(TARGET)
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) $< -o $@
+
+$(TARGET): $(OBJS)
+ $(LD) $^ $(LFLAGS) -o $@
+
+clean:
+ $(RM) $(TARGET) $(OBJS)
+
+compile_commands: clean
+ compiledb make
+