aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-01 17:49:59 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-01 17:49:59 -0400
commita52a390780636652db22a705a4dc52b61ce9a9f2 (patch)
tree3840611bebf2e0684da09518ac3c5ad90be4b655 /Makefile
parent8ab1c570cf529df981c7d8c27066bfa80f22fc0a (diff)
choose the right architecture for building on the Niagara
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fe850a7..f40460c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,16 @@ KERNEL_DIR = ../litmus2008
2 2
3INC=-Iinclude/ -I${KERNEL_DIR}/include/ 3INC=-Iinclude/ -I${KERNEL_DIR}/include/
4 4
5CFLAGS=-Wall -Wdeclaration-after-statement ${INC} -g -D_XOPEN_SOURCE=600 5ARCH=$(shell uname -m | sed -e s/i.86/i386/)
6
7ifeq ($(ARCH),sparc64)
8 CPU="-mcpu=v9"
9else
10 CPU=""
11endif
12
13
14CFLAGS=-Wall -Wdeclaration-after-statement ${INC} ${CPU} -g -D_XOPEN_SOURCE=600
6CPPFLAGS=-Wall -g 15CPPFLAGS=-Wall -g
7 16
8LIBS= ./liblitmus.a 17LIBS= ./liblitmus.a