X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2FMakefile;h=f76540cb9166d64de0e5d861903be4ca3e3b1e24;hb=c43c05ef3234d6118ce601d299df60383d54ac7b;hp=14bae50787b6031899b83196f81d4660caa7c65e;hpb=5e9042e320d0a24d1691bcd6845936879238e812;p=tpg%2Facess2.git diff --git a/Kernel/Makefile b/Kernel/Makefile index 14bae507..f76540cb 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -10,6 +10,10 @@ -include Makefile.BuildNum.$(ARCH) +ifeq ($(BUILDNUM),) +BUILDNUM = 0 +endif + KERNEL_VERSION = 0.5 MAKEDEP = $(CC) -M @@ -112,11 +116,12 @@ include/syscalls.h include/syscalls.inc.asm: syscalls.lst Makefile GenSyscalls.p Makefile: ../Makefile.cfg arch/$(ARCHDIR)/Makefile -.PHONY: $(BUILDINFO_SRC) -$(BUILDINFO_SRC): - @echo "const char * const gsGitHash = \""`git log -n 1 | head -n 1 | awk '{print $$1}'`"\";" > $@ +$(BUILDINFO_SRC): $(filter-out $(BUILDINFO_OBJ), $(OBJ)) $(MODS) arch/$(ARCHDIR)/link.ld Makefile + @echo "#include " > $@ + @echo "const char gsGitHash[] = \""`git log -n 1 | head -n 1 | awk '{print $$2}'`"\";" >> $@ @echo "const int giBuildNumber = $(BUILD_NUM);" >> $@ $(BUILDINFO_OBJ): $(BUILDINFO_SRC) + @echo --- CC -o $@ @$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< # Dependency Files