diff options
Diffstat (limited to 'nrf528xx/makefile')
-rw-r--r-- | nrf528xx/makefile | 24 |
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 + |