X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=rf433ctl%2FMakefile;h=30a0031b93ab045f05c46ac57f878b5cdd532acd;hb=ed56aa9dd776a4eb9928895f84a6f8a3276eba84;hp=8c599fb5cfaf590743c085098390eb704d1c433d;hpb=d28fbe27742a031f5bc5c39cd3b5588a39423162;p=svn42.git diff --git a/rf433ctl/Makefile b/rf433ctl/Makefile index 8c599fb..30a0031 100755 --- a/rf433ctl/Makefile +++ b/rf433ctl/Makefile @@ -12,13 +12,15 @@ 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 \ $(ARDUINO)/wiring_analog.c $(ARDUINO)/wiring_digital.c \ $(ARDUINO)/wiring_pulse.c $(ARDUINO)/wiring_serial.c \ $(ARDUINO)/wiring_shift.c $(ARDUINO)/WInterrupts.c -CXXSRC = OneWire/OneWire.cpp DallasTemperature/DallasTemperature.cpp $(ARDUINO)/HardwareSerial.cpp $(ARDUINO)/Print.cpp $(ARDUINO)/WMath.cpp +CXXSRC = OneWire/OneWire.cpp DallasTemperature/DallasTemperature.cpp $(ARDUINO)/HardwareSerial.cpp $(ARDUINO)/Print.cpp $(ARDUINO)/WMath.cpp IRremote/IRremote.cpp FORMAT = ihex @@ -37,8 +39,8 @@ CDEFS = -DF_CPU=$(F_CPU) CXXDEFS = -DF_CPU=$(F_CPU) # Place -I options here -CINCS = -I ./OneWire -I ./DallasTemperature -I$(ARDUINO) -CXXINCS = -I ./OneWire -I ./DallasTemperature -I$(ARDUINO) +CINCS = -I ./OneWire -I ./DallasTemperature -I ./IRremote -I$(ARDUINO) +CXXINCS = -I ./OneWire -I ./DallasTemperature -I ./IRremote -I$(ARDUINO) # Compiler flag to set the C Standard level. # c89 - "ANSI" C @@ -114,7 +116,8 @@ lss: applet/$(TARGET).lss sym: applet/$(TARGET).sym # Program the device. -upload: applet/$(TARGET).hex +upload: applet/$(TARGET).hex $(RESET_TTY) + $(RESET_TTY) $(PORT) $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) @@ -207,4 +210,7 @@ depend: >> $(MAKEFILE); \ $(CC) -M -mmcu=$(MCU) $(CDEFS) $(CINCS) $(SRC) $(ASRC) >> $(MAKEFILE) +$(RESET_TTY): + make -C $(RESET_TTY_DIR) + .PHONY: all build elf hex eep lss sym program coff extcoff clean depend applet_files sizebefore sizeafter