X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=rf433ctl%2FMakefile;h=30a0031b93ab045f05c46ac57f878b5cdd532acd;hb=8682625b18daa7a9f6ae5d3fff47e9e3158d19ef;hp=c5dc50ec3a0928ecacc83d5bd014d92eca8b5682;hpb=75d3e955b7445b15c9c25a425e888ae76af6c3db;p=svn42.git diff --git a/rf433ctl/Makefile b/rf433ctl/Makefile index c5dc50e..30a0031 100755 --- a/rf433ctl/Makefile +++ b/rf433ctl/Makefile @@ -12,6 +12,8 @@ F_CPU = 16000000 ############################################################################ # Below here nothing should be changed... +RESET_TTY_DIR=../reset_tty/ +RESET_TTY=$(RESET_TTY_DIR)reset_tty ARDUINO = $(INSTALL_DIR)/hardware/cores/arduino AVR_TOOLS_PATH = /usr/bin SRC = $(ARDUINO)/pins_arduino.c $(ARDUINO)/wiring.c \ @@ -114,8 +116,8 @@ lss: applet/$(TARGET).lss sym: applet/$(TARGET).sym # Program the device. -upload: applet/$(TARGET).hex reset_tty - ./reset_tty +upload: applet/$(TARGET).hex $(RESET_TTY) + $(RESET_TTY) $(PORT) $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) @@ -208,7 +210,7 @@ depend: >> $(MAKEFILE); \ $(CC) -M -mmcu=$(MCU) $(CDEFS) $(CINCS) $(SRC) $(ASRC) >> $(MAKEFILE) -reset_tty: reset_tty.c - $(CC) -L /usr/lib/ -L /lib -I /usr/include/ -o reset_tty reset_tty.c +$(RESET_TTY): + make -C $(RESET_TTY_DIR) .PHONY: all build elf hex eep lss sym program coff extcoff clean depend applet_files sizebefore sizeafter