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.
 
 
 
 
 
 

31 lines
989 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. .PHONY: runbuild
  15. runbuild: $(SRCS) Makefile mk/*.mk
  16. for i in $(.MAKEFILE_LIST) $(.ALLSRC) $$(cat $(DEPENDS) | gsed ':x; /\\$$/ { N; s/\\\n//; tx }' | sed -e 's/^[^:]*://'); do if [ "$$i" != ".." ]; then echo $$i; fi; done | sort -u | entr -d sh -c 'echo starting...; cd $(.CURDIR) && $(MAKE) $(.MAKEFLAGS) depend && $(MAKE) $(.MAKEFLAGS) all'
  17. # native objects
  18. .SUFFIXES: .no
  19. .c.no:
  20. $(CC) $(CFLAGS) -c $< -o $@
  21. .c.o:
  22. $(ARMCC) $(ARMTARGET) $(CFLAGS) -c $< -o $@