6 include ../lpc/Makefile.defs
17 # Common AltOS sources
51 PRODUCT_DEF=-DEASYMINI_V_1_0
54 CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS)
56 PROGNAME=easymini-v1.0
57 PROG=$(PROGNAME)-$(VERSION).elf
58 HEX=$(PROGNAME)-$(VERSION).ihx
59 FLASH_PROG=flash-loader/$(PROGNAME)-altos-flash-$(VERSION).elf
60 BOTH_HEX=$(PROGNAME)-combined-$(VERSION).ihx
62 SRC=$(ALTOS_SRC) ao_easymini.c
65 all: $(PROG) $(HEX) $(BOTH_HEX)
67 $(PROG): Makefile $(OBJ) altos.ld
68 $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
70 $(BOTH_HEX): $(PROG) $(FLASH_PROG)
71 ../../ao-tools/ao-elftohex/ao-elftohex -n --output=$@ $(FLASH_PROG) $(PROG)
74 +cd flash-loader && make
86 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map