Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
644 B

  1. .MAIN: all
  2. .PHONY: all
  3. .for i in $(PROGS)
  4. ALLTGTS+= $(i)$(PROGEXT) $(i).list
  5. ASRCS.$(i) = $(SRCS) $(SRCS.$(i))
  6. OBJS.$(i) = $(ASRCS.$(i):C/.c$/.o/)
  7. .arm_deps: $(ASRCS.$(i))
  8. $(i)$(PROGEXT) $(i).map: $(OBJS.$(i))
  9. $(ARMCC) $(ARMTARGET) -o $(i)$(PROGEXT) $(.ALLSRC) -T$(LINKER_SCRIPT) --specs=nosys.specs -Wl,-Map="$(i).map" -Wl,--gc-sections -static --specs=nano.specs -Wl,--start-group -lc -lm -Wl,--end-group
  10. $(i).list: $(i)$(PROGEXT)
  11. $(ARMOBJDUMP) -h -S $(.ALLSRC) > $@ || (rm -f $@ && false)
  12. .endfor
  13. all: $(ALLTGTS)
  14. # native objects
  15. .SUFFIXES: .no
  16. .c.no:
  17. $(CC) $(CFLAGS) -c $< -o $@
  18. .c.o:
  19. $(ARMCC) $(ARMTARGET) $(CFLAGS) -c $< -o $@