6 include ../stmf0/Makefile.defs
21 # Common AltOS sources
44 PRODUCT=ChaosKey-hw-1.0-sw-$(VERSION)
45 PRODUCT_DEF=-DCHAOSKEY_V_1_0
49 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -g -Os
51 PROGNAME=chaoskey-v1.0
52 PROG=$(PROGNAME)-$(VERSION).elf
53 HEX=$(PROGNAME)-$(VERSION).ihx
54 METAINFO=org.altusmetrum.ChaosKey.metainfo.xml
56 SRC=$(ALTOS_SRC) ao_chaoskey.c
61 $(PROG): Makefile $(OBJ) altos.ld
62 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
64 ao_product.h: ao-make-product.5c ../Version
65 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -V $(IDVENDOR) -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) -o $@
69 %.cab: $(PROG) $(HEX) $(METAINFO)
70 gcab --create --nopath $@ $(PROG) $(HEX) $(METAINFO)
72 cab: $(VENDOR)-$(PROJECT_NAME)-$(VERSION).cab
75 appstream-util validate-relax $(METAINFO)
80 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx