1
Author: IOhannes m zmölnig
2
Description: upstream Makefile forgot about Hurd & kFreeBSD;
3
they should be handled the same as Linux
4
--- pd-smlib.orig/Makefile
8
#------------------------------------------------------------------------------#
11
# get library version from meta file
12
LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd)
15
STRIP = strip --strip-unneeded -R .note -R .comment
16
DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
19
+ # GNU/Hurd, should work like GNU/Linux for basically all externals
20
+ CPU := $(shell uname -m)
21
+ SOURCES += $(SOURCES_linux)
22
+ EXTENSION = pd_linux
25
+ OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
27
+ ALL_LDFLAGS += -Wl,--export-dynamic -shared -fPIC
29
+ STRIP = strip --strip-unneeded -R .note -R .comment
30
+ DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
32
+ifeq ($(UNAME),GNU/kFreeBSD)
33
+ # Debian GNU/kFreeBSD, should work like GNU/Linux for basically all externals
34
+ CPU := $(shell uname -m)
35
+ SOURCES += $(SOURCES_linux)
36
+ EXTENSION = pd_linux
39
+ OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
41
+ ALL_LDFLAGS += -Wl,--export-dynamic -shared -fPIC
43
+ STRIP = strip --strip-unneeded -R .note -R .comment
44
+ DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
46
ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
47
CPU := $(shell uname -m)
48
SOURCES += $(SOURCES_cygwin)