aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2003-09-05 10:03:46 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2003-09-05 10:03:46 +0000
commit53f05d96ff8e49c87977fa91a06ebade8893606e (patch)
tree51bd07eb57c532e61515fb85a0fcd83698054854 /Makefile.common
parent672477f94d2d0701f75f2546ad79980dc9ac8543 (diff)
*** empty log message ***
svn path=/trunk/externals/miXed/; revision=931
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common39
1 files changed, 19 insertions, 20 deletions
diff --git a/Makefile.common b/Makefile.common
index 32a92ab..00530a3 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -14,15 +14,25 @@ TILDE = ~
include Makefile.sources
include Makefile.objects
-ifneq ($(OS_NAME),Darwin)
+default: define_build all
+
+ifeq ($(OS_NAME),Linux)
# FIXME
CC = gcc-2.95
-else
-# for MacOS X
-CC = gcc2
+X_SUFFIX = pd_linux
+DEFINES = -DUNIX
+OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
+LFLAGS = -export_dynamic -shared
endif
-default: define_build all
+ifeq ($(OS_NAME),Darwin)
+CC = gcc2
+X_SUFFIX = pd_darwin
+DEFINES = -DUNIX -DMACOSX
+OPT_CFLAGS = -O2 -funroll-loops -fomit-frame-pointer
+# -private_bundle is a guess, LATER check this
+LFLAGS = -bundle -undefined suppress -flat_namespace
+endif
SHARED_DIR = $(ROOT_DIR)/shared
OBJ_DIR = .
@@ -57,21 +67,6 @@ SOURCES = $(CX_SOURCES) $(AX_SOURCES) $(LX_SOURCES) $(OTHER_SOURCES) \
INCLUDES = -I. -I$(PD_DIR) -I$(SHARED_DIR)
-ifeq ($(OS_NAME),Linux)
-X_SUFFIX = pd_linux
-DEFINES = -DUNIX
-OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
-LFLAGS = -export_dynamic -shared
-endif
-
-ifeq ($(OS_NAME),Darwin)
-X_SUFFIX = pd_darwin
-DEFINES = -DUNIX -DMACOSX
-OPT_CFLAGS = -O2 -funroll-loops -fomit-frame-pointer
-# -private_bundle is a guess, LATER check this
-LFLAGS = -bundle -undefined suppress -flat_namespace
-endif
-
WARN_CFLAGS = -Wall -W -Wstrict-prototypes -Werror \
-Wno-unused -Wno-parentheses -Wno-switch
DBG_CFLAGS =
@@ -327,6 +322,10 @@ Makefile.deps:
# added by Hans-Christoph Steiner <hans@eds.org>
# to generate MacOS X packages
+# krzYszcz:
+# LATER try making cyclone-specifics abstracted out ala linux release
+# btw, why libs have to be removed from an install?
+
PACKAGE_PREFIX = pd-$(BASE_NAME)
PACKAGE_NAME = $(PACKAGE_PREFIX)-$(VERSION)-$(RELEASE)$(BUILD)