aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2005-01-27 14:42:55 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2005-01-27 14:42:55 +0000
commitbfb359fd22e61faaca3a6e49ad3b7a81f2d71551 (patch)
treed070071515c7e7f53073da32046b24855e8307c8 /Makefile.common
parent6435314717c5fb8fa062eb682c72c8df095b1be3 (diff)
cyclone alpha52 and toxy alpha15 (see notes.txt for cyclone, toxy and shared)
svn path=/trunk/externals/miXed/; revision=2550
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile.common b/Makefile.common
index aec8e9e..018a5ef 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -1,12 +1,6 @@
# next line has to be edited manually
PD_DIR = $(ROOT_DIR)/../../pd/src
-# remove this restriction LATER, when TCL_LIB is ./configured
-ifeq ($(shell whoami),krzYszcz)
-# TCL_LIB should be set (or not) before "include Makefile.sources"
-TCL_LIB = -l$(shell grep -osm1 'tcl8\.[345]' $(PD_DIR)/makefile)
-endif
-
OS_NAME = $(shell uname -s)
ifneq ($(OS_NAME),Linux)
ifneq ($(OS_NAME),Darwin)
@@ -22,6 +16,14 @@ endif
endif
endif
+MY_NAME = $(shell id -un)
+
+# remove this restriction LATER, when TCL_LIB is ./configured
+ifeq ($(MY_NAME),krzYszcz)
+# TCL_LIB should be set (or not) before "include Makefile.sources"
+TCL_LIB = -l$(shell grep -osm1 'tcl8\.[345]' $(PD_DIR)/makefile)
+endif
+
TILDE = ~
-include Makefile.dirs
@@ -36,7 +38,7 @@ CC = gcc
LFLAGS = -export_dynamic -shared
# FIXME strict-aliasing
OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
-ifeq ($(shell whoami),krzYszcz)
+ifeq ($(MY_NAME),krzYszcz)
DEFINES = -DUNIX -DKRZYSZCZ
else
DEFINES = -DUNIX
@@ -98,7 +100,7 @@ SOURCES = $(CX_SOURCES) $(AX_SOURCES) $(LX_SOURCES) $(OTHER_SOURCES) \
INCLUDES = -I. -I$(PD_DIR) -I$(SHARED_DIR)
-ifeq ($(shell whoami),krzYszcz)
+ifeq ($(MY_NAME),krzYszcz)
WARN_CFLAGS = -Wall -W -Wstrict-prototypes -Werror \
-Wno-unused -Wno-parentheses -Wno-switch
else
@@ -213,7 +215,7 @@ SUBDIRS_DEFAULT = @for i in $(MIXED_DIRS) and_in_case_it_is_null ; \
cd $$i; $(MAKE) ; fi ) ; done
define_build:
- @if [[ -f build_counter && `whoami` == krzYszcz && \
+ @if [[ -f build_counter && `id -un` == krzYszcz && \
`date -r build_counter +%j` != `date +%j` ]] ; then \
mv build_counter build_counter~ ; \
echo -n 'increment build counter (y/n)? [n]' ; read doit ; \