altoslib: fix computation of TeleGPS battery voltage
[fw/altos] / src / cc1111 / Makefile.cc1111
index 8de4a9b290f282043e39ca2f358dc6d50a5cdd71..cb2d3db48c03b3968cdca4ddf41fb6c804ce9eae 100644 (file)
@@ -1,8 +1,9 @@
-CC=sdcc
+include ../Makedefs
+CC=$(SDCC)
 
-CFLAGS=--model-small --debug --opt-code-speed -DCODESIZE=$(CODESIZE)
+CFLAGS=--model-small --debug --opt-code-speed -DCODESIZE=$(CODESIZE) -DCC1111
 
-CFLAGS += $(PRODUCT_DEF) -I. -I.. -I../core -I../cc1111 -I../driver -I../product
+CFLAGS += $(PRODUCT_DEF) -I. -I.. -I../kernel -I../cc1111 -I../drivers -I../product
 
 CODESIZE ?= 0x8000
 
@@ -25,3 +26,14 @@ PAOM=$(PROG:.ihx=)
 
 %.rel : %.c $(INC)
        $(call quiet,CC,$(PRODUCT_DEF)) $(CFLAGS) -c -o$@ $<
+
+all:
+
+clean-cc1111:
+       rm -f *.adb *.asm *.lnk *.lst *.rel *.rst *.sym
+       rm -f $(PROGNAME)-*
+       rm -f ao_product.h
+       rm -f ../$(PROGNAME)-*
+
+../ao_kalman.h:
+       +(cd .. && make ao_kalman.h)