summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c6a04c8..151a0a3 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@
############ compiler ############
+GIT_REVISION=$(shell git rev-parse HEAD)
+
#use our cross compiler
CC=i686-foolos-gcc
AS=i686-foolos-as
@@ -18,6 +20,7 @@ AS=i686-elf-as
############ compiler flags ############
CFLAGS=
+CFLAGS=-DGIT_REVISION=\"$(GIT_REVISION)\"
CFLAGS+=-ffreestanding # do we need this if using own compiler?
CFLAGS+=-nostdlib
CFLAGS+=-O0