Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SOURCES = $(wildcard *.c)
- SOURCES += $(wildcard $(LIBDIR)/*.c)
- SOURCES += $(wildcard $(LIBDIR)/*.s)
- CFLAGS = -Wall -mlittle-endian -mthumb -Os -c
- CFLAGS += -mcpu=cortex-$(CORTEX)
- CFLAGS += -std=c99
- CPPFLAGS = -D$(MCU_D_MOD)
- CPPFLAGS += -I$(LIBDIR)
- all: $(TARGET).bin
- @ls
- $(TARGET).bin: $(TARGET).elf
- @$(OBJCOPY) -O binary $< $@
- $(TARGET).elf: $(OBJS)
- @$(LD) $(LDFLAGS) $(OBJS) -o $@
- %.o: %.c
- @$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement