Makefile 238 B

12345678910111213141516171819
  1. CC=msp430-gcc
  2. CFLAGS=-Os -Wall -g -mmcu=msp430g2553
  3. OBJS=main.o
  4. all: $(OBJS)
  5. $(CC) $(CFLAGS) -o main.elf $(OBJS)
  6. %.o: %.c
  7. $(CC) $(CFLAGS) -c $<
  8. clean:
  9. rm -fr main.elf $(OBJS)
  10. upload:
  11. mspdebug rf2500 "prog main.elf"