]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - avr/Makefile
* I2C Support added
[avrcpm.git] / avr / Makefile
index 664425ff5a5c59c98b0dbb07251fa29a1ad79a8d..efc5b1c04e6c93cc39db1f175d9e049687e7c287 100644 (file)
@@ -10,6 +10,7 @@ BAUD = 57600
 #BAUD = 115200
 
 DRAM_8BIT = 1
+#I2C = 1
 
 TARGET = avrcpm
 ASRC0  = avrcpm.asm 
@@ -20,7 +21,7 @@ ASRC0 += dsk_cpm.asm dsk_fat16.asm dsk_fsys.asm dsk_mgr.asm dsk_ram.asm
 ASRC0 += 8080int-orig.asm 8080int.asm 8080int-jmp.asm 8080int-t3.asm 8080int-t3-jmp.asm Z80int-jmp.asm
 
 ifneq ($(DRAM_8BIT),0)
-  ASRC0 += dram-8bit.inc dram-8bit.asm sw-uart.asm 
+  ASRC0 += dram-8bit.inc dram-8bit.asm sw-uart.asm i2c.asm
 else
   ASRC0 += dram-4bit.inc dram-4bit.asm hw-uart.asm 
 endif
@@ -29,7 +30,10 @@ endif
 ASRC := $(ASRC0) svnrev.inc
 
 # Place -D or -U options here
-CDEFS = -DF_CPU=$(F_CPU) -DBAUD=$(BAUD) -D$(MCU) -DDRAM_8BIT=$(DRAM_8BIT)
+CDEFS = -DF_CPU=$(F_CPU) -DBAUD=$(BAUD) -D$(MCU) -DDRAM_8BIT=$(DRAM_8BIT) 
+ifdef I2C
+  CDEFS += -DI2C=$(I2C)
+endif
 
 ASPATH = C:/Programme/Atmel/AVR\ Tools/AvrAssembler2
 DEFS = $(ASPATH)/Appnotes