MCU = attiny84
FORMAT = ihex
-TARGET = DS18B20_VOC_DS2438_SHT
-SRC = ../common/calibr.c DS18B20_DS2438.c ../common/I2C/SHT2x.c ../common/I2C/MAX1164x.c ../common/I2C/USI_TWI_Master.c
+TARGET =DS18B20_VOC_DS2438_SHT
+SRC = ../common/calibr.c ../common/I2C/SHT2x.c ../common/I2C/MAX1164x.c ../common/I2C/USI_TWI_Master.c DS18B20_DS2438.c
ASRC = ../common/OWDS18B20_DS2438.S
# Name of this Makefile (used for "make depend").
# Programming support using avrdude. Settings and variables.
-AVRDUDE_PROGRAMMER = stk500
-AVRDUDE_PORT = /dev/term/a
+#AVRDUDE_PROGRAMMER = stk500
+#AVRDUDE_PORT = /dev/term/a
-AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
+#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
# to submit bug reports.
#AVRDUDE_VERBOSE = -v -v
-AVRDUDE_BASIC = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
-AVRDUDE_FLAGS = $(AVRDUDE_BASIC) $(AVRDUDE_NO_VERIFY) $(AVRDUDE_VERBOSE) $(AVRDUDE_ERASE_COUNTER)
+#AVRDUDE_BASIC = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
+#AVRDUDE_FLAGS = $(AVRDUDE_BASIC) $(AVRDUDE_NO_VERIFY) $(AVRDUDE_VERBOSE) $(AVRDUDE_ERASE_COUNTER)
CC = avr-gcc
OBJDUMP = avr-objdump
SIZE = avr-size
NM = avr-nm
-AVRDUDE = avrdude
+#AVRDUDE = avrdude
REMOVE = rm -f
MV = mv -f
elf: $(TARGET).elf
hex: $(TARGET).hex
-eep: $(TARGET).eep
+#eep: $(TARGET).eep
lss: $(TARGET).lss
sym: $(TARGET).sym
.SUFFIXES: .elf .hex .eep .lss .sym
.elf.hex:
- $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
+ $(OBJCOPY) -O $(FORMAT) $< $@
+# $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
.elf.eep:
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \