diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-19 20:04:06 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-19 20:04:06 +0200 |
commit | aab4ed17b94f54813368201d3a0cba3f3d432589 (patch) | |
tree | 4babada7f6d176d06a5459510533baa10ac91cd4 /stm32f091/makefile | |
parent | 2274409f898351f958975d49b0324d992c6073d0 (diff) |
integrate protocol code into stm32 code
Diffstat (limited to 'stm32f091/makefile')
-rw-r--r-- | stm32f091/makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/stm32f091/makefile b/stm32f091/makefile index 5a185de..20424c3 100644 --- a/stm32f091/makefile +++ b/stm32f091/makefile @@ -5,6 +5,8 @@ RM = rm -f TARGET = main +include ../shared/shared.mk + SHARED_FLAGS += -g SHARED_FLAGS += -DSTM32F091xC SHARED_FLAGS += -Wall @@ -74,9 +76,15 @@ $(TARGET).bin: $(TARGET).elf %.o: %.s $(CC) -c $(AFLAGS) $< -o $@ +lib/%.o: lib/%.c + $(CC) -c $(CFLAGS) -w $< -o $@ + %.o: %.c $(CC) -c $(CFLAGS) $< -o $@ +%-stm.o: %.c + $(CC) -c $(CFLAGS) $< -o $@ + $(TARGET).elf: $(OBJS) $(LD) $(LFLAGS) $^ -o $@ |