]> git.gag.com Git - fw/altos/blob - src/lpc/Makefile-flash.defs
Ignore some built files for 1.6.3
[fw/altos] / src / lpc / Makefile-flash.defs
1 include $(TOPDIR)/lpc/Makefile-lpc.defs
2
3 INC = \
4         ao.h \
5         ao_arch.h \
6         ao_arch_funcs.h \
7         ao_flash_pins.h \
8         ao_flash_lpc_pins.h \
9         ao_flash_task.h \
10         ao_pins.h \
11         ao_product.h \
12         Makefile
13
14 #
15 # Common AltOS sources
16 #
17 SRC = \
18         ao_interrupt.c \
19         ao_romconfig.c \
20         ao_boot_chain.c \
21         ao_boot_pin.c \
22         ao_product.c \
23         ao_notask.c \
24         ao_timer_lpc.c \
25         ao_usb_lpc.c \
26         ao_flash_lpc.c \
27         ao_flash_task.c \
28         ao_flash_loader_lpc.c
29
30 OBJ=$(SRC:.c=.o)
31
32 PRODUCT=AltosFlash
33 PRODUCT_DEF=-DALTOS_FLASH
34 IDPRODUCT=0x000a
35
36 CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS) -g -Os
37
38 LDFLAGS=$(CFLAGS) -L$(TOPDIR)/lpc -Wl,-Taltos-loader.ld
39
40 PROGNAME=altos-flash
41 PROG=$(HARDWARE)-$(PROGNAME)-$(VERSION).elf
42
43 $(PROG): Makefile $(OBJ) altos-loader.ld
44         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
45
46 ao_product.h: ao-make-product.5c $(TOPDIR)/Version
47         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
48
49 $(OBJ): $(INC)
50
51 all: $(PROG)
52
53 distclean:      clean
54
55 clean:
56         rm -f *.o $(HARDWARE)-$(PROGNAME)-*.elf
57         rm -f ao_product.h
58
59 install:
60
61 uninstall: