]> git.gag.com Git - fw/altos/blob - src/lpcxpresso/Makefile
altosuilib: Include device path in equals test of AltosUSBDevice
[fw/altos] / src / lpcxpresso / Makefile
1 #
2 # AltOS build
3 #
4 #
5
6 include ../lpc/Makefile.defs
7
8 INC = \
9         ao.h \
10         ao_arch.h \
11         ao_arch_funcs.h \
12         ao_pins.h \
13         ao_product.h \
14         lpc.h
15
16 #
17 # Common AltOS sources
18 #
19 ALTOS_SRC = \
20         ao_interrupt.c \
21         ao_romconfig.c \
22         ao_product.c \
23         ao_panic.c \
24         ao_led_lpc.c \
25         ao_task.c \
26         ao_cmd.c \
27         ao_timer_lpc.c \
28         ao_serial_lpc.c \
29         ao_usb_lpc.c \
30         ao_stdio.c
31
32 PRODUCT=LpcDemo-v0.0
33 PRODUCT_DEF=-DLPC_DEMO
34 IDPRODUCT=0x000a
35
36 CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS) -g -Os
37
38 PROG=lpc-demo.elf
39
40 SRC=$(ALTOS_SRC) ao_demo.c
41 OBJ=$(SRC:.c=.o)
42
43 all: $(PROG)
44
45 LDFLAGS=-L../lpc -Wl,-Taltos.ld
46
47 $(PROG): Makefile $(OBJ)
48         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
49
50 ao_product.h: ao-make-product.5c ../Version
51         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
52
53 $(OBJ): $(INC)
54
55 load: $(PROG)
56         lpc-load $(PROG)
57
58 distclean:      clean
59
60 clean:
61         rm -f *.o $(PROG)
62         rm -f ao_product.h
63
64 install:
65
66 uninstall: