diff options
author | Karel Kočí <cynerd@email.cz> | 2016-03-08 16:10:33 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-03-08 16:10:33 +0100 |
commit | 5d29fe79d30f430ae326d9dc57ccfaed6fe61328 (patch) | |
tree | 8341804d561c0060176cbebc3f9a57c7c07f7816 /avr-ioe.mk | |
parent | 4e773191d447ac434536262a6f204dd991d4ad77 (diff) | |
download | avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.tar.gz avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.tar.bz2 avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.zip |
Another full update of current work
Diffstat (limited to 'avr-ioe.mk')
-rw-r--r-- | avr-ioe.mk | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/avr-ioe.mk b/avr-ioe.mk deleted file mode 100644 index fb818e8..0000000 --- a/avr-ioe.mk +++ /dev/null @@ -1,62 +0,0 @@ -ifndef IOE_PREFIX - IOE_PREFIX = . -endif - -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 = $(patsubst %.c,%.o,$(IOE_SRC)) -IOE_DEP = $(patsubst %.c,%.d,$(IOE_SRC)) - - -ifndef IOE_ONLYPATHS # Following section can be suppressed by defining this variable - -ifneq ($(MAKECMDGOALS),clean) -ifneq ($(MAKECMDGOALS),help) --include $(IOE_DEP) -endif -endif - -ifndef F_CPU - $(error Please define F_CPU variable in makefile before including avr-ioe.mk) -endif -ifndef MMCU - $(error Pleade define MMCU variable in makefile before including avr-ioe.mk) -endif -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 $@ $< - -$(IOE_DEP): %.d: %.c - $(IOE_GCC) -MM -MG -MT '$*.o $@' $(IOE_CFLAGS) -c -o $@ $< - -.PHONY: ioeclean -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 |