-$(PROG).ihx: $(REL) Makefile
- $(CC) $(LDFLAGS_FLASH) $(CFLAGS) -o $(PROG).ihx $(REL)
- sh check-stack ao.h $(PROG).mem
+telemetrum.ihx: $(TM_REL) Makefile
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(TM_REL)
+ sh check-stack ao.h telemetrum.mem
+
+tidongle.ihx: $(TI_REL) Makefile
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(TI_REL)
+ sh check-stack ao.h tidongle.mem
+
+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