]> git.gag.com Git - fw/altos/blob - src/usbtrng/Makefile
altos/ms5607: Allow applications to not use the normal data ring and thread
[fw/altos] / src / usbtrng / 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_boot_chain.c \
22         ao_romconfig.c \
23         ao_product.c \
24         ao_mutex.c \
25         ao_panic.c \
26         ao_stdio.c \
27         ao_task.c \
28         ao_cmd.c \
29         ao_timer_lpc.c \
30         ao_exti_lpc.c \
31         ao_usb_lpc.c \
32         ao_serial_lpc.c \
33         ao_spi_lpc.c \
34         ao_led_lpc.c
35
36 PRODUCT=usbtrng-v0.1
37 PRODUCT_DEF=-DUSBTRNG_V_0_1
38 IDPRODUCT=0x0028
39
40 CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS) -g -Os
41
42 PROGNAME=usbtrng-v0.1
43 PROG=$(PROGNAME)-$(VERSION).elf
44 HEX=$(PROGNAME)-$(VERSION).ihx
45
46 SRC=$(ALTOS_SRC) ao_usbtrng.c
47 OBJ=$(SRC:.c=.o)
48
49 all: $(PROG) $(HEX)
50
51 $(PROG): Makefile $(OBJ) altos.ld
52         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
53
54 ao_product.h: ao-make-product.5c ../Version
55         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
56
57 $(OBJ): $(INC)
58
59 load: $(PROG)
60         lpc-load $(PROG)
61
62 distclean:      clean
63
64 clean:
65         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
66         rm -f ao_product.h
67
68 install:
69
70 uninstall: