From 53f05d96ff8e49c87977fa91a06ebade8893606e Mon Sep 17 00:00:00 2001 From: "N.N." Date: Fri, 5 Sep 2003 10:03:46 +0000 Subject: *** empty log message *** svn path=/trunk/externals/miXed/; revision=931 --- Makefile.common | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'Makefile.common') 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 # 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) -- cgit v1.2.1