aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-05 04:15:09 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-05 04:15:09 +0000
commit91ae51d51e1bb51977c53b1403969f522405d19c (patch)
treefc6fac3ea1c409254cb9927b7a391e1f28dc17c8
parenta4469cbccaa2e64c80e24742f01082b41f870021 (diff)
added pd_src variable; added CPU-specific OPT_CFLAGS on Mac OS X; fixed up Windows flags
svn path=/trunk/externals/ext13/; revision=11678
-rw-r--r--Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 9197c9e..c8a4e58 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,9 @@ SOURCES = catch13~.c ext13.c filesize.c ftos.c kalashnikov.c mandelbrot~.c mande
LIBRARY_NAME = $(shell basename $(PWD))
-CFLAGS = -DPD -I../../pd/src -Wall -W -g
+pd_src = ../../pd
+
+CFLAGS = -DPD -I$(pd_src)/src -Wall -W -g
LDFLAGS =
LIBS =
@@ -20,6 +22,11 @@ ifeq ($(UNAME),Darwin)
LDFLAGS += -bundle -undefined dynamic_lookup
LIBS += -lc
STRIP = strip -x
+ ifeq ($(shell uname -m),i386)
+ OPT_CFLAGS += -march=pentium-m
+ else
+ OPT_CFLAGS += -march=7400
+ endif
endif
ifeq ($(UNAME),Linux)
SOURCES += cdplayer.c ossmixer.c promiscous~.c
@@ -35,10 +42,9 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
SOURCES +=
EXTENSION = dll
OS = windows
- OPT_CFLAGS = -03 -funroll-loops -fomit-frame-pointer
- WINDOWS_HACKS = -D'O_NONBLOCK=1'
- CFLAGS += -mms-bitfields $(WINDOWS_HACKS)
- LDFLAGS += -shared
+ OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -march=i686 -mtune=pentium4
+ CFLAGS += -mms-bitfields
+ LDFLAGS += -s -shared
LIBS += -L$(pd_src)/bin -L$(pd_src)/obj -lpd -lwsock32 -lkernel32 -luser32 -lgdi32
STRIP = strip --strip-unneeded -R .note -R .comment
endif