Makefiles for Linux
[owSlave2.git] / DS18B20_VOC_DS2438_SHT / Makefile
index 5b3f725..a74fade 100644 (file)
@@ -7,8 +7,8 @@
 
 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").
@@ -58,10 +58,10 @@ LDFLAGS = -Wl,--start-group -Wl,-lm  -Wl,--end-group -Wl,--gc-sections -mmcu=$(M
 
 # 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
 
 
@@ -79,8 +79,8 @@ AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
 # 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
@@ -88,7 +88,7 @@ OBJCOPY = avr-objcopy
 OBJDUMP = avr-objdump
 SIZE = avr-size
 NM = avr-nm
-AVRDUDE = avrdude
+#AVRDUDE = avrdude
 REMOVE = rm -f
 MV = mv -f
 
@@ -111,7 +111,7 @@ build: elf hex eep
 
 elf: $(TARGET).elf
 hex: $(TARGET).hex
-eep: $(TARGET).eep
+#eep: $(TARGET).eep
 lss: $(TARGET).lss 
 sym: $(TARGET).sym
 
@@ -142,7 +142,8 @@ extcoff: $(TARGET).elf
 .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" \