diff options
author | Karel Kočí <cynerd@email.cz> | 2015-10-17 15:40:51 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-10-17 15:40:51 +0200 |
commit | b0d8f22f3492fbb3f6dc0e8026e63c803af59007 (patch) | |
tree | eb9707612e87856962474885f2a18ae1621d214e /avr-ioe.mk | |
parent | 8fa9db4244f4ee33aa47561c569edfa62fe37928 (diff) | |
download | avr-ioe-b0d8f22f3492fbb3f6dc0e8026e63c803af59007.tar.gz avr-ioe-b0d8f22f3492fbb3f6dc0e8026e63c803af59007.tar.bz2 avr-ioe-b0d8f22f3492fbb3f6dc0e8026e63c803af59007.zip |
Complete commit of current work
Diffstat (limited to 'avr-ioe.mk')
-rw-r--r-- | avr-ioe.mk | 31 |
1 files changed, 23 insertions, 8 deletions
@@ -2,16 +2,14 @@ ifndef IOE_PREFIX IOE_PREFIX = . endif -IOE_SRC_SPI = $(IOE_PREFIX)/src/spi.c -IOE_SRC_USART = $(IOE_PREFIX)/src/usart.c -IOE_SRC = $(IOE_SRC_SPI) $(IOE_SRC_USART) +IOE_SRC = $(IOE_PREFIX)/src/spi.c \ + $(IOE_PREFIX)/src/usart.c \ + $(IOE_PREFIX)/src/timer.c \ + $(IOE_PREFIX)/src/tasks.c \ + $(IOE_PREFIX)/src/pcint.c \ + $(IOE_PREFIX)/src/sensor_dht22.c \ -IOE_OBJ_SPI = $(patsubst %.c,%.o,$(IOE_SRC_SPI)) -IOE_OBJ_USART = $(patsubst %.c,%.o,$(IOE_SRC_USART)) IOE_OBJ = $(patsubst %.c,%.o,$(IOE_SRC)) - -IOE_DEP_SPI = $(patsubst %.c,%.d,$(IOE_SRC_SPI)) -IOE_DEP_USART = $(patsubst %.c,%.d,$(IOE_SRC_USART)) IOE_DEP = $(patsubst %.c,%.d,$(IOE_SRC)) @@ -33,6 +31,7 @@ IOE_CFLAGS ?= -Os -ffunction-sections -fdata-sections -fshort-enums -Wall \ -DF_CPU=$(F_CPU) -mmcu=$(MMCU) IOE_GCC ?= avr-gcc +ifndef IOE_SHORTOUTPUT $(IOE_OBJ): %.o: %.c $(IOE_GCC) $(IOE_CFLAGS) -c -o $@ $< @@ -43,5 +42,21 @@ $(IOE_DEP): %.d: %.c ioeclean:: $(RM) $(IOE_OBJ) $(RM) $(IOE_DEP) +else +$(IOE_OBJ): %.o: %.c + @echo " IOE CC $@" + @$(IOE_GCC) $(IOE_CFLAGS) -c -o $@ $< + +$(IOE_DEP): %.d: %.c + @echo " IOE DEP $@" + @$(IOE_GCC) -MM -MG -MT '$*.o $@' $(IOE_CFLAGS) -c -o $@ $< + +.PHONY: ioeclean +ioeclean:: + @echo " IOE CLEAN OBJ" + @$(RM) $(IOE_OBJ) + @echo " IOE CLEAN DEP" + @$(RM) $(IOE_DEP) +endif endif |