diff options
author | Karel Kočí <cynerd@email.cz> | 2017-03-07 10:10:09 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-03-07 10:10:09 +0100 |
commit | fbe0e4d00ba7e026b8b848cfcd0ed583a71f8069 (patch) | |
tree | 21c0c60ebfef4b7fabcd659a8af373bad46dec7f /template/Makefile | |
parent | 5ab2332addae2a90a1fa438c91e8069ebbfc4082 (diff) | |
download | avr-ioe-fbe0e4d00ba7e026b8b848cfcd0ed583a71f8069.tar.gz avr-ioe-fbe0e4d00ba7e026b8b848cfcd0ed583a71f8069.tar.bz2 avr-ioe-fbe0e4d00ba7e026b8b848cfcd0ed583a71f8069.zip |
Just huge update
Diffstat (limited to 'template/Makefile')
-rw-r--r-- | template/Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/template/Makefile b/template/Makefile index bc0643f..59218a2 100644 --- a/template/Makefile +++ b/template/Makefile @@ -41,25 +41,29 @@ include ioeconfig # If you want change some standard CFLAGS, change them in configuration not here. # Add here only options that should not be applied to avr-ioe also. CFLAGS = -Iavr-ioe/include -mmcu=$(MMCU) -imacros avr-ioe/build/config.h \ - $(shell echo $(CONFCFLAGS)) $(shell echo -DF_CPU=$(F_CPU)000L) + $(shell echo $(CCFLAGS)) $(shell echo -DF_CPU=$(F_CPU)000L) +CC = $(CHOST)gcc +AR = $(CHOST)ar +CPP = $(CHOST)cpp +OBJCOPY = $(CHOST)objcopy $(PROJNAME).elf: avr-ioe/libioe.a $(PROJNAME).elf: $(OBJ) @echo " LD $@" - $(Q)avr-gcc -Os -mmcu=$(MMCU) $^ -o $@ -Lavr-ioe -lioe + $(Q)$(CC) -Os -mmcu=$(MMCU) $^ -o $@ -Lavr-ioe -lioe $(PROJNAME).hex: $(PROJNAME).elf @echo " OBJCOPY $@" - $(Q)avr-objcopy -O ihex -R .eeprom $< $@ + $(Q)$(OBJCOPY) -O ihex -R .eeprom $< $@ $(OBJ): %.o: %.c avr-ioe/build/config.h @echo " CC $@" - $(Q)avr-gcc $(CFLAGS) -c -o $@ $< + $(Q)$(CC) $(CFLAGS) -c -o $@ $< avr-ioe/libioe.a: ioeconfig - $(Q)$(MAKE) -C avr-ioe libioe.a CONFIG="$$( readlink -f ioeconfig )" + $(Q)+$(MAKE) -C avr-ioe libioe.a CONFIG="$$( readlink -f ioeconfig )" avr-ioe/build/config.h: ioeconfig - $(Q)$(MAKE) -C avr-ioe build/config.h CONFIG="$$( readlink -f ioeconfig )" + $(Q)+$(MAKE) -C avr-ioe build/config.h CONFIG="$$( readlink -f ioeconfig )" endif .config: |