diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-22 01:40:31 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-22 01:40:31 -0400 |
commit | 70030c70da321f66f0be4508f76dc7ed1b43be4a (patch) | |
tree | ac009974d49b4c436c17dcd14022b26cb4487da4 | |
parent | 889a3c1661c870ad3742614d42ec19b0bff0230f (diff) |
Makefile: compile on both sparc and i385
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,12 @@ | |||
1 | CFLAGS=-Wall -g -Iinclude/ -m64 | 1 | ARCH=$(shell uname -m | sed -e s/i.86/i386/) |
2 | CPPFLAGS=-Wall -g | 2 | |
3 | INC= -Iinclude | ||
4 | |||
5 | ifeq ($(ARCH),sparc64) | ||
6 | CFLAGS= -Wall -g ${INC} -mcpu=v9 -m64 | ||
7 | else | ||
8 | CFLAGS= -Wall -g ${INC} | ||
9 | endif | ||
3 | 10 | ||
4 | vpath %.h include/ | 11 | vpath %.h include/ |
5 | vpath %.c src/ | 12 | vpath %.c src/ |