aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-03-07 10:10:09 +0100
committerKarel Kočí <cynerd@email.cz>2017-03-07 10:10:09 +0100
commitfbe0e4d00ba7e026b8b848cfcd0ed583a71f8069 (patch)
tree21c0c60ebfef4b7fabcd659a8af373bad46dec7f /Makefile
parent5ab2332addae2a90a1fa438c91e8069ebbfc4082 (diff)
downloadavr-ioe-fbe0e4d00ba7e026b8b848cfcd0ed583a71f8069.tar.gz
avr-ioe-fbe0e4d00ba7e026b8b848cfcd0ed583a71f8069.tar.bz2
avr-ioe-fbe0e4d00ba7e026b8b848cfcd0ed583a71f8069.zip
Just huge update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index b71c4bf..13d281b 100644
--- a/Makefile
+++ b/Makefile
@@ -43,11 +43,11 @@ DEP = $(patsubst %.c,$(O)/build/%.d,$(SRC))
-include $(DEP)
-CFLAGS = $(shell echo $(CONFCFLAGS)) $(shell echo -DF_CPU=$(F_CPU)000L) \
+CFLAGS = $(shell echo $(CCFLAGS)) $(shell echo -DF_CPU=$(F_CPU)000L) \
-mmcu=$(MMCU) -Iinclude -imacros $(O)/build/config.h
-GCC = $(GNUTOOLCHAIN_PREFIX)gcc
-AR = $(GNUTOOLCHAIN_PREFIX)ar
-CPP = $(GNUTOOLCHAIN_PREFIX)cpp
+CC = $(CHOST)gcc
+AR = $(CHOST)ar
+CPP = $(CHOST)cpp
$(O)/libioe.a: $(OBJ)
@echo " AR $@"
@@ -56,7 +56,7 @@ $(O)/libioe.a: $(OBJ)
$(OBJ): $(O)/build/%.o: src/%.c
@mkdir -p "$(@D)"
@echo " CC $@"
- $(Q)$(GCC) $(CFLAGS) -c -o $@ $<
+ $(Q)$(CC) $(CFLAGS) -c -o $@ $<
$(DEP): $(O)/build/%.d: src/%.c $(O)/build/config.h
@mkdir -p "$(@D)"
@@ -97,10 +97,10 @@ serve-docs:
.PHONY: clean-docs
clean-docs:
@echo " CLEAN docs"
- $(Q)$(RM) -r site
+ $(Q)$(RM) -r html
-.PHONY: distclean
-distclean: clean clean-docs
+.PHONY: proper
+proper: clean clean-docs
@echo " CLEAN CONFIG"
$(Q)$(RM) $(CONFIG) $(CONFIG).orig