Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/intercom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2013-09-26 22:18:46 +0400
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2013-09-26 22:18:46 +0400
commit2571b22f6fbde9b0078c9514fb5fbbd3d081e714 (patch)
tree96de79f7639f8112703341c47f4419fb1e576518 /Makefile
parent593314450f7d4c27d298e004fcad27248a36e3b5 (diff)
CLUNET moved but working!
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e46d8c5..5eb682b 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,8 @@ OBJ = intercom.o ff.o diskio.o rtc.o clunet.o sound.o transfer.o
#HFUSE = D9
#MCU_PROGRAMMER = m8
+CLUNET_PATH = ../clunet
CLUNET_FLASHER = D:/Soft/Soft/ClunetFlasher/clunetflasher.exe
-//CLUNET_IP = 127.0.0.1
CLUNET_IP = 10.13.0.254
CLUNET_PORT = 10009
CLUNET_DEVICE_ID = 7
@@ -70,7 +70,7 @@ CC = avr-gcc
# Override is only needed by avr-lib build system.
-override CFLAGS = -g -Wall $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
+override CFLAGS = -g -Wall $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) -I. -I$(CLUNET_PATH)
override LDFLAGS = -Wl,-Map,$(PRG).map
OBJCOPY = avr-objcopy
@@ -81,8 +81,8 @@ all: $(PRG).elf lst text eeprom
$(PRG).elf: $(OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
-# dependency:
-demo.o: demo.c
+clunet.o:
+ $(CC) $(CFLAGS) -c -o $@ $^ $(CLUNET_PATH)/clunet.c
clean:
rm -rf *.o $(PRG).elf *.eps *.png *.pdf *.bak