1 HOSTNAME
:= $(shell if
[ $(shell expr
$(shell hostname
) : '.*\.') != '0' ]; then expr
$(shell hostname
) : '\([^.]*\).'; else echo
$(shell hostname
); fi
)
2 LOCAL_DIR
= $(HOME
)/local-
$(HOSTNAME
)
6 isTTY
= [ -t
1 -o
-S
/dev
/stdin
]
7 WGET
= if
$(isTTY
); then WGET_FLAGS
= '-P'; else WGET_FLAGS
= '-nv -P'; fi
; wget
$$WGET_FLAGS download
9 CFLAGS
+= -I
$(HOME
)/local-
$(HOSTNAME
)/include
10 CXXFLAGS
+= -I
$(HOME
)/local-
$(HOSTNAME
)/include
12 ifeq ($(HOSTNAME
), cf-x86
)
13 LDFLAGS
+= -L
$(HOME
)/local-
$(HOSTNAME
)/lib64
15 LDFLAGS
+= -L
$(HOME
)/local-
$(HOSTNAME
)/lib
20 ifeq ($(HOSTNAME
), mirror-doors
)
21 XCODE_ROOT
= /Xcode2.5
23 XCODE_ROOT
= /Developer
28 $(shell case
$1 in
(*.
tar.gz
) echo gzip
;; (*.tgz
) echo gzip
;; (*.
tar.bz2
) echo bzip2
;; (*.
tar.xz
) echo xz
;; esac
)