aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-22 01:40:31 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-22 01:40:31 -0400
commit70030c70da321f66f0be4508f76dc7ed1b43be4a (patch)
treeac009974d49b4c436c17dcd14022b26cb4487da4
parent889a3c1661c870ad3742614d42ec19b0bff0230f (diff)
Makefile: compile on both sparc and i385
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9927dc4..3cf160e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,12 @@
1CFLAGS=-Wall -g -Iinclude/ -m64 1ARCH=$(shell uname -m | sed -e s/i.86/i386/)
2CPPFLAGS=-Wall -g 2
3INC= -Iinclude
4
5ifeq ($(ARCH),sparc64)
6 CFLAGS= -Wall -g ${INC} -mcpu=v9 -m64
7else
8 CFLAGS= -Wall -g ${INC}
9endif
3 10
4vpath %.h include/ 11vpath %.h include/
5vpath %.c src/ 12vpath %.c src/