diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-01 17:49:59 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-01 17:49:59 -0400 |
commit | a52a390780636652db22a705a4dc52b61ce9a9f2 (patch) | |
tree | 3840611bebf2e0684da09518ac3c5ad90be4b655 /Makefile | |
parent | 8ab1c570cf529df981c7d8c27066bfa80f22fc0a (diff) |
choose the right architecture for building on the Niagara
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -2,7 +2,16 @@ KERNEL_DIR = ../litmus2008 | |||
2 | 2 | ||
3 | INC=-Iinclude/ -I${KERNEL_DIR}/include/ | 3 | INC=-Iinclude/ -I${KERNEL_DIR}/include/ |
4 | 4 | ||
5 | CFLAGS=-Wall -Wdeclaration-after-statement ${INC} -g -D_XOPEN_SOURCE=600 | 5 | ARCH=$(shell uname -m | sed -e s/i.86/i386/) |
6 | |||
7 | ifeq ($(ARCH),sparc64) | ||
8 | CPU="-mcpu=v9" | ||
9 | else | ||
10 | CPU="" | ||
11 | endif | ||
12 | |||
13 | |||
14 | CFLAGS=-Wall -Wdeclaration-after-statement ${INC} ${CPU} -g -D_XOPEN_SOURCE=600 | ||
6 | CPPFLAGS=-Wall -g | 15 | CPPFLAGS=-Wall -g |
7 | 16 | ||
8 | LIBS= ./liblitmus.a | 17 | LIBS= ./liblitmus.a |