summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-12-29 23:22:38 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-12-29 23:22:38 -0500
commitccd37737ebdabb7a68c1836856394767500ff38d (patch)
tree94a2c1f94b33d652ae768b58b78eb5bf00eb78bf /Makefile
parentb9160874be69ca4a08df3f19e2477d0b5fae4c52 (diff)
Mostly improve ./configure, a couple of related changes in Makefiles
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 070c232..de9de06 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-VERSION := $(shell if test -f version.txt; then cat version.txt; else git describe; fi)
+-include config.mk
host_arch := $(shell uname -m)
export SHARED=0
-export CC = gcc -static $(if $(findstring i686,$@),-m32)
+export CC = gcc $(if $(MAINTAINER_MODE),-static) $(if $(findstring i686,$@),-m32,-m64)
# Just for convenience
keymapdir = resources/utilities/grub-assemble/keymap
@@ -28,7 +28,7 @@ roms = $(foreach board,$(boards),\
all: PHONY build
-build: PHONY roms tools # $(addprefix tools-,$(arches))
+build: PHONY roms $(if $(MAINTAINER_MODE),$(addprefix tools-,$(arches)),tools)
roms: PHONY $(foreach rom,$(roms),roms/$(rom).rom roms/$(rom)_with_seabios.rom)
tools: PHONY tools-$(host_arch)
@@ -60,6 +60,9 @@ multiglob = $(if $(strip $2),\
configure: configure.ac
autoconf
+config.mk: configure config.mk.in
+ ./configure
+
Makefile.d/keymap-list.mk: $(keymapdir)/original/
echo keymaps = $(notdir $(wildcard $</*)) > $@
Makefile.d/modules-list.mk: Makefile.d/modules/