| 1 |
# |
| 2 |
# AltOS build for TeleLCO v3.0 |
| 3 |
# |
| 4 |
# |
| 5 |
|
| 6 |
STM32F1_LINKER_SCRIPT=altos-128.ld |
| 7 |
|
| 8 |
include ../stm32f1/Makefile.defs |
| 9 |
|
| 10 |
INC = \ |
| 11 |
ao.h \ |
| 12 |
ao_arch.h \ |
| 13 |
ao_arch_funcs.h \ |
| 14 |
ao_boot.h \ |
| 15 |
ao_companion.h \ |
| 16 |
ao_data.h \ |
| 17 |
ao_sample.h \ |
| 18 |
ao_pins.h \ |
| 19 |
ao_product.h \ |
| 20 |
ao_lco.h \ |
| 21 |
ao_lco_cmd.h \ |
| 22 |
ao_lco_func.h \ |
| 23 |
ao_radio_spi.h \ |
| 24 |
ao_radio_cmac.h \ |
| 25 |
ao_cc1200_CC1200.h \ |
| 26 |
ao_cc1200.h \ |
| 27 |
ao_st7565.h \ |
| 28 |
ao_font.h \ |
| 29 |
ao_logo.h \ |
| 30 |
stm32f1.h |
| 31 |
|
| 32 |
# |
| 33 |
# Common AltOS sources |
| 34 |
# |
| 35 |
|
| 36 |
ALTOS_SRC = \ |
| 37 |
ao_boot_chain.c \ |
| 38 |
ao_interrupt.c \ |
| 39 |
ao_product.c \ |
| 40 |
ao_romconfig.c \ |
| 41 |
ao_cmd.c \ |
| 42 |
ao_config.c \ |
| 43 |
ao_task.c \ |
| 44 |
ao_led.c \ |
| 45 |
ao_stdio.c \ |
| 46 |
ao_panic.c \ |
| 47 |
ao_clock.c \ |
| 48 |
ao_timer.c \ |
| 49 |
ao_mutex.c \ |
| 50 |
ao_freq.c \ |
| 51 |
ao_adc_stm.c \ |
| 52 |
ao_data.c \ |
| 53 |
ao_dma_stm.c \ |
| 54 |
ao_spi_stm.c \ |
| 55 |
ao_beep_stm.c \ |
| 56 |
ao_convert_volt.c \ |
| 57 |
ao_fast_timer.c \ |
| 58 |
ao_pwm_stm.c \ |
| 59 |
ao_eeprom.c \ |
| 60 |
ao_flash_stm.c \ |
| 61 |
ao_usb_stm.c \ |
| 62 |
ao_exti_stm.c \ |
| 63 |
ao_cc1200.c \ |
| 64 |
ao_radio_cmac.c \ |
| 65 |
ao_aes.c \ |
| 66 |
ao_aes_tables.c \ |
| 67 |
ao_st7565.c \ |
| 68 |
ao_rect.c \ |
| 69 |
ao_text.c \ |
| 70 |
ao_text_width.c \ |
| 71 |
ao_box.c \ |
| 72 |
ao_copy.c \ |
| 73 |
ao_blt.c \ |
| 74 |
ao_line.c \ |
| 75 |
ao_logo.c \ |
| 76 |
ao_poly.c \ |
| 77 |
BitstreamVeraSans-Roman-58.c \ |
| 78 |
BitstreamVeraSans-Roman-24.c \ |
| 79 |
BitstreamVeraSans-Roman-10.c \ |
| 80 |
BitstreamVeraSans-Roman-12.c \ |
| 81 |
BenguiatGothicStd-Bold-24.c \ |
| 82 |
ao_quadrature.c \ |
| 83 |
ao_button.c \ |
| 84 |
ao_event.c \ |
| 85 |
ao_lco_bits.c \ |
| 86 |
ao_lco_v3.c \ |
| 87 |
ao_lco_cmd.c \ |
| 88 |
ao_lco_func.c \ |
| 89 |
ao_radio_cmac_cmd.c |
| 90 |
|
| 91 |
PRODUCT=TeleLCO-v3.0 |
| 92 |
PRODUCT_DEF=-DTELELCO |
| 93 |
IDPRODUCT=0x0023 |
| 94 |
|
| 95 |
CFLAGS = $(PRODUCT_DEF) $(STM32F1_CFLAGS) |
| 96 |
|
| 97 |
PROGNAME=telelco-v3.0 |
| 98 |
PROG=$(PROGNAME)-$(VERSION).elf |
| 99 |
HEX=$(PROGNAME)-$(VERSION).ihx |
| 100 |
|
| 101 |
SRC=$(ALTOS_SRC) ao_telelco.c |
| 102 |
OBJ=$(SRC:.c=.o) |
| 103 |
|
| 104 |
all: $(PROG) $(HEX) |
| 105 |
|
| 106 |
$(PROG): Makefile $(OBJ) altos-128.ld |
| 107 |
$(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS) |
| 108 |
|
| 109 |
$(OBJ): $(INC) |
| 110 |
|
| 111 |
distclean: clean |
| 112 |
|
| 113 |
clean: |
| 114 |
rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map |
| 115 |
rm -f ao_product.h |
| 116 |
|
| 117 |
ao_font.h: |
| 118 |
cd ../draw && make ao_font.h ao_logo.h |
| 119 |
|
| 120 |
ao_logo.h: ao_font.h |
| 121 |
|
| 122 |
BitstreamVeraSans-Roman-58.c: ao_font.h |
| 123 |
BitstreamVeraSans-Roman-24.c: ao_font.h |
| 124 |
BitstreamVeraSans-Roman-10.c: ao_font.h |
| 125 |
BitstreamVeraSans-Roman-12.c: ao_font.h |
| 126 |
BenguiatGothicStd-Bold-24.c: ao_font.h |
| 127 |
|
| 128 |
install: |
| 129 |
|
| 130 |
uninstall: |