From: chaoskagami Date: Tue, 3 May 2016 05:32:18 +0000 (-0400) Subject: Update Makefile versioning X-Git-Tag: stable-1~80 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=3b7f48a017d7f31b2c2e38e16005d4e4731ddfe3;p=corbenik%2Fcorbenik.git Update Makefile versioning --- 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