Description: Fix -m64 on some archs
Author: Sascha Steinbiss <sascha@steinbiss.name>
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,8 @@
 CC=gcc
 CFLAGS=-Wall -DAGN_DATA_PATH='"$(prefix)/share/aegean"' -Wno-unused-result
 GTFLAGS=prefix=$(prefix)
+SYSTEM:=$(shell uname -s)
+MACHINE:=$(shell uname -m)
 ifeq ($(cairo),no)
   CFLAGS += -DWITHOUT_CAIRO
   GTFLAGS += cairo=no
@@ -43,8 +45,10 @@
   CFLAGS += -O3
 endif
 ifneq ($(64bit),no)
-  CFLAGS += -m64
-  GTFLAGS += 64bit=yes
+  ifeq (,$(filter $(MACHINE),ia64 alpha mips64 mips64el aarch64))
+    CFLAGS += -m64
+    GTFLAGS += 64bit=yes
+  endif
 endif
 ifneq ($(debug),no)
   CFLAGS += -g
@@ -70,7 +74,7 @@
 
 # Targets
 all:		$(BINS) libaegean.a
-		
+
 
 install:	all
 		@ mkdir -p $(prefix)/bin/
@@ -146,7 +150,7 @@
 		@ ar ru libaegean.a $(AGN_OBJS)
 
 inc/core/AgnVersion.h:	
-			@- echo "[print $@]"
+			@ echo "[print $@]"
 			@ data/scripts/version.py > $@
 
 test:		agn-test
