altos: Use #define values for ublox packet types
[fw/altos] / src / tidongle / Makefile
index 149b00c54eb35487a54935c7ccac3261b83be365..b2ba537bfc36336e6fa82f18e489c4882fc95340 100644 (file)
@@ -30,14 +30,12 @@ CORE_SRC = \
        ao_freq.c
 
 CC1111_SRC = \
-       ao_aes.c \
        ao_dbg.c \
        ao_dma.c \
        ao_led.c \
        ao_packet.c \
        ao_packet_master.c \
        ao_radio.c \
-       ao_radio_cmac.c \
        ao_romconfig.c \
        ao_string.c \
        ao_timer.c \
@@ -55,7 +53,8 @@ SRC = \
        $(DRIVER_SRC) \
        $(PRODUCT_SRC)
 
-PROG = tidongle-$(VERSION).ihx
+PROGNAME = tidongle
+PROG = $(PROGNAME)-$(VERSION).ihx
 PRODUCT=TIDongle
 PRODUCT_DEF=-DTIDONGLE
 IDPRODUCT=0x000a
@@ -73,10 +72,10 @@ endif
 # Otherwise, print the full command line.
 quiet ?= $($1)
 
-all: ../$(PROG)
+all: $(PROG)
 
-../$(PROG): $(REL) Makefile
-       $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
+$(PROG): $(REL) Makefile
+       $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
        $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
 
 ao_product.h: ao-make-product.5c ../Version
@@ -84,11 +83,7 @@ ao_product.h: ao-make-product.5c ../Version
 
 distclean:     clean
 
-clean:
-       rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
-       rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
-       rm -f ao_product.h
-       rm -f ../$(PROG) ../$(PMAP)
+clean: clean-cc1111
 
 install: