updated Makefile to latest version
svn path=/trunk/externals/iem/comport/; revision=14669
This commit is contained in:
parent
49ca0deb14
commit
18ae2b9c8c
1 changed files with 33 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
## Pd library template version 1.0.3
|
||||
## Pd library template version 1.0.6
|
||||
# For instructions on how to use this template, see:
|
||||
# http://puredata.info/docs/developer/MakefileTemplate
|
||||
LIBRARY_NAME = comport
|
||||
|
|
@ -31,7 +31,8 @@ EXTRA_DIST = CHANGES.txt comport.dsp comport.dsw comport-stress-test.pd makefile
|
|||
#
|
||||
#------------------------------------------------------------------------------#
|
||||
|
||||
CFLAGS = -DPD -I"$(PD_INCLUDE)" -Wall -W -g
|
||||
# -I"$(PD_INCLUDE)/pd" supports the header location for 0.43
|
||||
CFLAGS = -I"$(PD_INCLUDE)/pd" -Wall -W -g
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ LIBS =
|
|||
# get library version from meta file
|
||||
LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd)
|
||||
|
||||
CFLAGS += -DVERSION='"$(LIBRARY_VERSION)"'
|
||||
CFLAGS += -DPD -DVERSION='"$(LIBRARY_VERSION)"'
|
||||
|
||||
PD_INCLUDE = $(PD_PATH)/include
|
||||
# where to install the library, overridden below depending on platform
|
||||
|
|
@ -62,7 +63,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx)
|
|||
$(SOURCES_iphoneos) $(SOURCES_linux) $(SOURCES_windows)
|
||||
|
||||
DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
|
||||
ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION)
|
||||
ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION)
|
||||
|
||||
UNAME := $(shell uname -s)
|
||||
ifeq ($(UNAME),Darwin)
|
||||
|
|
@ -121,6 +122,34 @@ ifeq ($(UNAME),Linux)
|
|||
STRIP = strip --strip-unneeded -R .note -R .comment
|
||||
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
|
||||
CFLAGS += -fPIC
|
||||
LDFLAGS += -Wl,--export-dynamic -shared -fPIC
|
||||
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
|
||||
CFLAGS += -fPIC
|
||||
LDFLAGS += -Wl,--export-dynamic -shared -fPIC
|
||||
LIBS += -lc
|
||||
STRIP = strip --strip-unneeded -R .note -R .comment
|
||||
DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
|
||||
endif
|
||||
ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
|
||||
CPU := $(shell uname -m)
|
||||
SOURCES += $(SOURCES_cygwin)
|
||||
|
|
|
|||
Loading…
Reference in a new issue