aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-12-06 17:32:21 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-12-06 17:32:21 +0000
commit64a6165587955d7d40cb101e4f6394692aa751ad (patch)
treed297dae814068562badf608983129928b73502a9
parent91369965bb5019d4e5706c3232af961a529e2368 (diff)
fixed Makefile for kFreeBSD and GNU/hurd
svn path=/trunk/externals/iem/iemnet/; revision=14573
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cc8b7b7..e65772a 100644
--- a/Makefile
+++ b/Makefile
@@ -114,6 +114,7 @@ ifeq ($(UNAME),Darwin)
DISTBINDIR=$(DISTDIR)-$(OS)
endif
endif
+
ifeq ($(UNAME),Linux)
SOURCES += $(SOURCES_linux)
EXTENSION = pd_linux
@@ -126,6 +127,34 @@ ifeq ($(UNAME),Linux)
DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
endif
+ifeq ($(UNAME),GNU)
+ # GNU/Hurd, should work like GNU/Linux for basically all externals
+ CPU := $(shell uname -m)
+ SOURCES += $(SOURCES_linux)
+ EXTENSION = pd_linux
+ OS = linux
+ PD_PATH = /usr
+ OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
+ ALL_CFLAGS += -fPIC
+ ALL_LDFLAGS += -Wl,--export-dynamic -shared -fPIC
+ ALL_LIBS += -lc
+ STRIP = strip --strip-unneeded -R .note -R .comment
+ DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
+endif
+ifeq ($(UNAME),GNU/kFreeBSD)
+ # Debian GNU/kFreeBSD, should work like GNU/Linux for basically all externals
+ CPU := $(shell uname -m)
+ SOURCES += $(SOURCES_linux)
+ EXTENSION = pd_linux
+ OS = linux
+ PD_PATH = /usr
+ OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
+ ALL_CFLAGS += -fPIC
+ ALL_LDFLAGS += -Wl,--export-dynamic -shared -fPIC
+ ALL_LIBS += -lc
+ STRIP = strip --strip-unneeded -R .note -R .comment
+ DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
+endif
ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
SOURCES += $(SOURCES_cygwin)