| 1 |
|
| 2 |
|
| 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_boot.h \ |
| 13 |
ao_pins.h \ |
| 14 |
ao_product.h \ |
| 15 |
ao_task.h \ |
| 16 |
ao_whiten.h \ |
| 17 |
lpc.h \ |
| 18 |
ao_cc1200.h \ |
| 19 |
ao_cc1200_CC1200.h \ |
| 20 |
Makefile |
| 21 |
|
| 22 |
ALTOS_SRC = \ |
| 23 |
ao_boot_chain.c \ |
| 24 |
ao_interrupt.c \ |
| 25 |
ao_product.c \ |
| 26 |
ao_romconfig.c \ |
| 27 |
ao_cc1200.c \ |
| 28 |
ao_cmd.c \ |
| 29 |
ao_config.c \ |
| 30 |
ao_task.c \ |
| 31 |
ao_led_lpc.c \ |
| 32 |
ao_stdio.c \ |
| 33 |
ao_panic.c \ |
| 34 |
ao_timer_lpc.c \ |
| 35 |
ao_mutex.c \ |
| 36 |
ao_freq.c \ |
| 37 |
ao_spi_lpc.c \ |
| 38 |
ao_usb_lpc.c \ |
| 39 |
ao_exti_lpc.c \ |
| 40 |
ao_send_packet.c \ |
| 41 |
ao_monitor.c \ |
| 42 |
ao_packet_master.c \ |
| 43 |
ao_packet.c |
| 44 |
|
| 45 |
PRODUCT=TeleDongle-v3.0 |
| 46 |
PRODUCT_DEF=-DTELEDONGLE |
| 47 |
IDPRODUCT=0x000c |
| 48 |
|
| 49 |
CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS) |
| 50 |
|
| 51 |
PROGNAME=teledongle-v3.0 |
| 52 |
PROG=$(PROGNAME)-$(VERSION).elf |
| 53 |
HEX=$(PROGNAME)-$(VERSION).ihx |
| 54 |
|
| 55 |
SRC=$(ALTOS_SRC) ao_teledongle.c |
| 56 |
OBJ=$(SRC:.c=.o) |
| 57 |
|
| 58 |
all: $(PROG) $(HEX) |
| 59 |
|
| 60 |
$(PROG): Makefile $(OBJ) altos.ld |
| 61 |
$(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS) |
| 62 |
|
| 63 |
$(OBJ): $(INC) |
| 64 |
|
| 65 |
load: $(PROG) |
| 66 |
lpc-load $(PROG) |
| 67 |
|
| 68 |
distclean: clean |
| 69 |
|
| 70 |
clean: |
| 71 |
rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map |
| 72 |
rm -f ao_product.h |
| 73 |
|
| 74 |
install: |
| 75 |
|
| 76 |
uninstall: |