%.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)-*
CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) -Os -g
-PROG=megametrum-v0.1-$(VERSION).elf
+PROGNAME=megametrum-v0.1
+PROG=$(PROGNAME)-$(VERSION).elf
SRC=$(ALTOS_SRC) ao_megametrum.c
OBJ=$(SRC:.c=.o)
distclean: clean
clean:
- rm -f $(OBJ)
+ rm -f *.o $(PROGNAME)-*.elf
rm -f ao_product.h
install:
$(PRODUCT_SRC) \
$(TELEBT_SRC)
-PROG = telebt-v$(TELEBT_VER)-$(VERSION).ihx
+PROGNAME = telebt-v$(TELEBT_VER)
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TeleBT-v$(TELEBT_VER)
PRODUCT_DEF=-DTELEBT_V_$(TELEBT_DEF)
IDPRODUCT=0x000e
# Otherwise, print the full command line.
quiet ?= $($1)
-all: ../$(PROG)
+all: $(PROG)
-../$(PROG): $(REL) Makefile
+$(PROG): $(REL) Makefile
$(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
$(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
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:
$(DRIVER_SRC) \
$(PRODUCT_SRC)
-PROG = teledongle-v$(TD_VER)-$(VERSION).ihx
+PROGNAME = teledongle-v$(TD_VER)
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TeleDongle-v$(TD_VER)
PRODUCT_DEF=-DTELEDONGLE_V_$(TD_DEF)
IDPRODUCT=0x000c
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:
$(DRIVER_SRC) \
$(PRODUCT_SRC)
-PROG = telelaunch-v$(TELELAUNCH_VER)-$(VERSION).ihx
+PROGNAME = telelaunch-v$(TELELAUNCH_VER)
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TeleLaunch-v$(TELELAUNCH_VER)
PRODUCT_DEF=-DTELELAUNCH_V_$(TELELAUNCH_DEF)
IDPRODUCT=0x000f
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:
$(DRIVER_SRC) \
$(PRODUCT_SRC)
-PROG = telemetrum-v$(TM_VER)-$(VERSION)$(TM_EXTRA).ihx
+PROGNAME = telemetrum-v$(TM_VER)$(TM_EXTRA)
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TeleMetrum-v$(TM_VER)
PRODUCT_DEF=-DTELEMETRUM_V_$(TM_DEF)
IDPRODUCT=0x000b
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:
$(DRIVER_SRC) \
$(PRODUCT_SRC)
-PROG = telemini-v$(TELEMINI_VER)-$(VERSION).ihx
+PROGNAME = telemini-v$(TELEMINI_VER)
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TeleMini-v$(TELEMINI_VER)
PRODUCT_DEF=-DTELEMINI_V_$(TELEMINI_DEF)
IDPRODUCT=0x000a
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:
$(DRIVER_SRC) \
$(PRODUCT_SRC)
-PROG = telenano-v$(TELENANO_VER)-$(VERSION).ihx
+PROGNAME = telenano-v$(TELENANO_VER)
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TeleNano-v$(TELENANO_VER)
PRODUCT_DEF=-DTELENANO_V_$(TELENANO_DEF)
IDPRODUCT=0x000a
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:
distclean: clean
clean:
- rm -f $(OBJ)
+ rm -f *.o $(PROG)
rm -f ao_product.h
install:
$(DRIVER_SRC) \
$(PRODUCT_SRC)
-PROG = teleballoon-v$(TELEBALLOON_VER)-$(VERSION).ihx
+PROGNAME = teleballoon-v$(TELEBALLOON_VER)
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TeleBalloon-v$(TELEBALLOON_VER)
PRODUCT_DEF=-DTELEBALLOON_V_$(TELEBALLOON_DEF)
IDPRODUCT=0x000b
# Otherwise, print the full command line.
quiet ?= $($1)
-all: ../$(PROG)
+all: $(PROG)
-../$(PROG): $(REL) Makefile
+$(PROG): $(REL) Makefile
$(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
$(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
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:
distclean: clean
clean:
- rm -f $(OBJ)
+ rm -f *.o $(PROG) $(PROG).hex
rm -f ao_product.h
install:
$(DRIVER_SRC) \
$(PRODUCT_SRC)
-PROG = teleshield-v$(TELESHIELD_VER)-$(VERSION).ihx
+PROGNAME = teleshield-v$(TELESHIELD_VER)
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TeleShield-v$(TELESHIELD_VER)
PRODUCT_DEF=-DTELESHIELD_V_$(TELESHIELD_DEF)
IDPRODUCT=0x0013
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:
TELETERRA_VER=0.2
TELETERRA_DEF=0_2
-PROG = teleterra-v$(TELETERRA_VER)-$(VERSION).ihx
+PROGNAME = teleterra-v$(TELETERRA_VER)
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TeleTerra-v$(TELETERRA_VER)
PRODUCT_DEF=-DTELETERRA_V_$(TELETERRA_DEF)
IDPRODUCT=0x000d
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:
all: $(PROGS)
clean:
- rm -f $(PROGS)
+ rm -f $(PROGS) run-out.baro run-out.full
install:
$(DRIVER_SRC) \
$(PRODUCT_SRC)
-PROG = tidongle-$(VERSION).ihx
+PROGNAME = tidongle
+PROG = $(PROGNAME)-$(VERSION).ihx
PRODUCT=TIDongle
PRODUCT_DEF=-DTIDONGLE
IDPRODUCT=0x000a
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: