aboutsummaryrefslogtreecommitdiff
path: root/nrf528xx/makefile
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 /nrf528xx/makefile
parentacbc6ee608bc7d9ec33ddf57719841335eff70b1 (diff)
project scaffolding and architecture draft in readme
Diffstat (limited to 'nrf528xx/makefile')
-rw-r--r--nrf528xx/makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/nrf528xx/makefile b/nrf528xx/makefile
new file mode 100644
index 0000000..78d52e2
--- /dev/null
+++ b/nrf528xx/makefile
@@ -0,0 +1,24 @@
+CC = gcc
+LD = gcc
+RM = rm -f
+CFLAGS =
+LFLAGS =
+TARGET = main
+
+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
+