X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=Makefile;h=2bb4cd68e297cfba3687edb8232a50c404f2a4c6;hp=550e7376962ed724628dea8b70738deb19a9f1bc;hb=86e73c009f78dc4664883353124fc891fbb01dce;hpb=43c8f7012102cdb591ace899420c10e4a78385ad diff --git a/Makefile b/Makefile index 550e7376..2bb4cd68 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # AltOS build # # -CC=/usr/bin/sdcc +CC=sdcc CFLAGS=--model-small --debug --opt-code-speed @@ -97,6 +97,34 @@ TI_SRC = \ $(TELE_COMMON_SRC) \ $(TI_TASK_SRC) +TT_TASK_SRC = \ + ao_teleterra.c +# +# All sources for TeleTerra +# +TT_SRC = \ + $(ALTOS_SRC) \ + $(ALTOS_DRIVER_SRC) \ + $(TELE_RECEIVER_SRC) \ + $(TELE_DRIVER_SRC) \ + $(TELE_COMMON_SRC) \ + $(TT_TASK_SRC) + + +# +# Sources for TeleDongle +# + +TD_TASK_SRC = \ + ao_teledongle.c + +TD_SRC = \ + $(ALTOS_SRC) \ + $(ALTOS_DRIVER_SRC) \ + $(TELE_RECEIVER_SRC) \ + $(TELE_COMMON_SRC) \ + $(TD_TASK_SRC) + SRC = \ $(ALTOS_SRC) \ $(ALTOS_DRIVER_SRC) \ @@ -105,10 +133,14 @@ SRC = \ $(TELE_COMMON_SRC) \ $(TM_DRIVER_SRC) \ $(TM_TASK_SRC) \ - $(TI_TASK_SRC) + $(TI_TASK_SRC) \ + $(TT_TASK_SRC) \ + $(TD_TASK_SRC) TM_REL=$(TM_SRC:.c=.rel) TI_REL=$(TI_SRC:.c=.rel) +TT_REL=$(TT_SRC:.c=.rel) +TD_REL=$(TD_SRC:.c=.rel) ADB=$(SRC:.c=.adb) ASM=$(SRC:.c=.asm) @@ -118,7 +150,8 @@ REL=$(SRC:.c=.rel) RST=$(SRC:.c=.rst) SYM=$(SRC:.c=.sym) -PROGS=telemetrum.ihx tidongle.ihx +PROGS=telemetrum.ihx tidongle.ihx teleterra.ihx teledongle.ihx ao_flight_test + PCDB=$(PROGS:.ihx=.cdb) PLNK=$(PROGS:.ihx=.lnk) PMAP=$(PROGS:.ihx=.map) @@ -140,6 +173,18 @@ tidongle.ihx: $(TI_REL) Makefile tidongle.ihx: telemetrum.ihx +teleterra.ihx: $(TT_REL) Makefile + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(TT_REL) + sh check-stack ao.h teleterra.mem + +teleterra.ihx: tidongle.ihx + +teledongle.ihx: $(TD_REL) Makefile + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(TD_REL) + sh check-stack ao.h teledongle.mem + +teledongle.ihx: teleterra.ihx + altitude.h: make-altitude nickle make-altitude > altitude.h