X-Git-Url: http://cloudbase.mooo.com/gitweb/irmp-demo.git/blobdiff_plain/b1a276a15faaf6b4b74769021857850e818156b7..abe1abf37f4346cae787f99f438fa85bc6345c1d:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 7de5646..038a6e8 100644 --- a/Makefile +++ b/Makefile @@ -19,16 +19,24 @@ DEFS += -DUSE_OPENCM3_API=0 #-DCON_BAUDRATE=38400 DEFS += -DDEBUG_IRMP_TIMER_INT=1 +CFLAGS += -save-temps -BINARY = irmp-main -OBJS += serial.o timer.o +BINARY = $(BINARY_irsnd) +OBJS = $(OBJS_irsnd) + +BINARY_irmp = irmp-main +BINARY_irsnd= irsnd-main +OBJS_irmp += serial.o timer.o +OBJS_irsnd += timer.o IRMP_DIR = irmp -OBJS += $(IRMP_DIR)/irmp.o +OBJS_irmp += $(IRMP_DIR)/irmp.o +OBJS_irsnd += $(IRMP_DIR)/irsnd.o DEFS += -I$(IRMP_DIR) DEFS += -DF_INTERRUPTS=15000 -DIRMP_PROTOCOL_NAMES=1 DEVICE = stm32f103c8t6 OPENCM3_DIR = libopencm3 +LDFLAGS += --specs=nano.specs include libopencm3.target.mk