X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FMakefile;h=828c48bdc5fc6775cf30ab81317bb623a6ccbd63;hb=cb4a73f3b65ba72f645fd37ab8712829c9537bf8;hp=9cc322a2d635949c49179b69ad1e0cc4383019ad;hpb=29687cbd462a332d9a36ed87500c5b737dcae3f4;p=fw%2Faltos diff --git a/src/Makefile b/src/Makefile index 9cc322a2..828c48bd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,7 +4,9 @@ # CC=sdcc +ifndef VERSION VERSION=$(shell git describe) +endif CFLAGS=--model-small --debug --opt-code-speed @@ -22,7 +24,6 @@ INC = \ # ALTOS_SRC = \ ao_cmd.c \ - ao_dbg.c \ ao_dma.c \ ao_mutex.c \ ao_panic.c \ @@ -68,6 +69,12 @@ TELE_FAKE_SRC = \ ao_adc_fake.c \ ao_ee_fake.c +# +# Debug dongle driver (only on TI) +# +DBG_DONGLE_SRC = \ + ao_dbg.c + # # Drivers only on TeleMetrum # @@ -113,7 +120,8 @@ TI_SRC = \ $(TELE_RECEIVER_SRC) \ $(TELE_COMMON_SRC) \ $(TELE_FAKE_SRC) \ - $(TI_MAIN_SRC) + $(TI_MAIN_SRC) \ + $(DBG_DONGLE_SRC) TT_MAIN_SRC = \ ao_teleterra.c