From 3b7f48a017d7f31b2c2e38e16005d4e4731ddfe3 Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Tue, 3 May 2016 01:32:18 -0400 Subject: [PATCH] Update Makefile versioning --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2579ad1..4b3c691 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ rwildcard = $(foreach d, $(wildcard $1*), $(filter $(subst *, %, $2), $d) $(call rwildcard, $d/, $2)) +PATH := $(PATH):$(DEVKITARM)/bin + CC := arm-none-eabi-gcc AS := arm-none-eabi-as LD := arm-none-eabi-ld @@ -14,10 +16,10 @@ dir_data := data dir_build := build dir_out := out -REVISION := $(shell git rev-list --count HEAD) +REVISION := r$(shell git rev-list --count HEAD):$(shell git rev-parse HEAD | head -c8) ASFLAGS := -mlittle-endian -mcpu=arm946e-s -march=armv5te -CFLAGS := -Wall -Wextra -Os $(ASFLAGS) -fno-builtin -std=c11 -DVERSION=\"r$(REVISION)\" +CFLAGS := -MMD -MP -Wall -Wextra -Werror -Os $(ASFLAGS) -fno-builtin -std=c11 -DVERSION=\"$(REVISION)\" FLAGS := dir_out=$(abspath $(dir_out)) --no-print-directory LDFLAGS := -nostdlib -Wl,-z,defs -lgcc -- 2.39.5