Commit e3c74b83 authored by thomas's avatar thomas
Browse files

updated build system

git-svn-id: https://svn.grrrr.org/ext/trunk@961 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent d220187f
......@@ -7,7 +7,7 @@ dnl flext API version (current:release:age)
API_VERSION=0:0:0
AC_INIT([flext],[0.5.0],[gr@grrrr.org],[flext])
AM_INIT_AUTOMAKE(1.8)
AM_INIT_AUTOMAKE(1.6)
dnl configure options
......@@ -70,10 +70,10 @@ AC_ARG_ENABLE(optimize, [ --enable-optimize enables optimized builds for:
OPT_FLAGS="-mtune=$enableval -march=$enableval -mmmx -msse -msse2 -mfpmath=sse";
AC_DEFINE(FLEXT_USE_SIMD);;
G5 | G4)
OPT_FLAGS="-mtune=$enableval -march=$enableval -maltivec -faltivec -malign-natural";
OPT_FLAGS="-mtune=$enableval --maltivec -faltivec -malign-natural";
AC_DEFINE(FLEXT_USE_SIMD);;
G3)
OPT_FLAGS="-mtune=$enableval -march=$enableval -malign-natural";;
OPT_FLAGS="-mtune=$enableval --malign-natural";;
*)
;;
esac
......@@ -101,21 +101,23 @@ dnl Checks for library functions.
dnl system specific
if test `uname -s` == Linux; then
DYNAMIC_LDFLAGS="-Wl,-Bdynamic"
DYNAMIC_LDFLAGS="-Wl,-Bdynamic -shared"
EXTENSION=pd_linux
SOEXT=so
fi
if test `uname -s` == Darwin; then
DYNAMIC_LDFLAGS = "-version-info $API_VERSION -release $AC_PACKAGE_VERSION -dylib -dynamic -flat_namespace -undefined suppress"
# DYNAMIC_LDFLAGS="-version-info $API_VERSION -release $AC_PACKAGE_VERSION -dynamiclib -dynamic -flat_namespace -undefined suppress"
if test $system = max; then
echo "what's the name in max???" #EXEEXT = ???
DYNAMIC_LDFLAGS="-dynamiclib -dynamic -flat_namespace -undefined suppress"
if test $system == max; then
EXTENSION=mxo
else
EXTENSION=pd_darwin
SOEXT=dylib
FRAMEWORKS=???
fi
SOEXT=dylib
FRAMEWORKS="ApplicationServices vecLib"
fi
dnl todo: mingw / cygwin
......@@ -155,3 +157,4 @@ AC_OUTPUT([
tutorial/pd/Makefile
tutorial/maxmsp/Makefile
source/Makefile])
......@@ -3,7 +3,7 @@
# added by tim blechmann
#
lib_LIBRARIES = libflext.a libflext_d.a libflext_t.a libflext_td.a
lib_LIBRARIES = libflext-pd_s.a libflext-pd_sd.a libflext-pd_t.a libflext-pd_td.a
SRCS_FLEXT = \
flbase.cpp \
......@@ -76,52 +76,53 @@ endif
FRAMEWORKS = @FRAMEWORKS@
# for static libraries we can use automake
libflext_a_SOURCES = $(SRCS_FLEXT)
libflext_d_a_SOURCES = $(SRCS_FLEXT)
libflext_t_a_SOURCES = $(SRCS_FLEXT)
libflext_td_a_SOURCES = $(SRCS_FLEXT)
libflext_pd_s_a_SOURCES = $(SRCS_FLEXT)
libflext_pd_sd_a_SOURCES = $(SRCS_FLEXT)
libflext_pd_t_a_SOURCES = $(SRCS_FLEXT)
libflext_pd_td_a_SOURCES = $(SRCS_FLEXT)
libflext_a_CXXFLAGS = @OPT_FLAGS@ @INCLUDEDIR@
libflext_d_a_CXXFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG
libflext_t_a_CXXFLAGS = @OPT_FLAGS@ @INCLUDEDIR@ -DFLEXT_THREADS
libflext_td_a_CXXFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG -DFLEXT_THREADS
libflext_pd_s_a_CXXFLAGS = @OPT_FLAGS@ @INCLUDEDIR@
libflext_pd_sd_a_CXXFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG
libflext_pd_t_a_CXXFLAGS = @OPT_FLAGS@ @INCLUDEDIR@ -DFLEXT_THREADS
libflext_pd_td_a_CXXFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG -DFLEXT_THREADS
libflext_a_LDFLAGS = @OPT_FLAGS@ @INCLUDEDIR@ \
libflext_pd_s_a_LDFLAGS = @OPT_FLAGS@ @INCLUDEDIR@ \
$(patsubst %,-framework %,$(FRAMEWORKS))
libflext_d_a_LDFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG \
libflext_pd_sd_a_LDFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG \
$(patsubst %,-framework %,$(FRAMEWORKS))
libflext_t_a_LDFLAGS = @OPT_FLAGS@ @INCLUDEDIR@ -DFLEXT_THREADS \
libflext_pd_t_a_LDFLAGS = @OPT_FLAGS@ @INCLUDEDIR@ -DFLEXT_THREADS \
$(patsubst %,-framework %,$(FRAMEWORKS))
libflext_td_a_LDFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG -DFLEXT_THREADS \
libflext_pd_td_a_LDFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG -DFLEXT_THREADS \
$(patsubst %,-framework %,$(FRAMEWORKS))
# for shared libraries, we can't ...
libflext_la_CXXFLAGS = @OPT_FLAGS@ @INCLUDEDIR@ -DFLEXT_SHARED \
libflext_pd_la_CXXFLAGS = @OPT_FLAGS@ @INCLUDEDIR@ -DFLEXT_SHARED \
-DFLEXT_EXPORTS $(DEFS)
libflext_d_la_CXXFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG -DFLEXT_SHARED \
libflext_pd_d_la_CXXFLAGS = @INCLUDEDIR@ -g -DFLEXT_DEBUG -DFLEXT_SHARED \
-DFLEXT_EXPORTS $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)
libflext_la_LDFLAGS = @DYNAMIC_LDFLAGS@ $(LIB_STK) $(LIB_SNDOBJ) $(LDFLAGS) \
libflext_pd_la_LDFLAGS = @DYNAMIC_LDFLAGS@ $(LIB_STK) $(LIB_SNDOBJ) $(LDFLAGS) \
$(patsubst %,-framework %,$(FRAMEWORKS))
libflext_d_la_LDFLAGS = @DYNAMIC_LDFLAGS@ $(LIB_STK) $(LIB_SNDOBJ) $(LDFLAGS)
libflext_pd_d_la_LDFLAGS = @DYNAMIC_LDFLAGS@ $(LIB_STK) $(LIB_SNDOBJ) $(LDFLAGS)
$(patsubst %,-framework %,$(FRAMEWORKS))
libflext_la_NAME = libflext.@SOEXT@
libflext_d_la_NAME = libflext_d.@SOEXT@
libflext_pd_la_NAME = libflext-pd.@SOEXT@
libflext_pd_d_la_NAME = libflext-pd_d.@SOEXT@
all-local: $(libflext_la_NAME) $(libflext_d_la_NAME)
all-local: $(libflext_pd_la_NAME) $(libflext_pd_d_la_NAME)
$(libflext_la_NAME): $(patsubst %.cpp,libflext_la-%.o,$(SRCS_FLEXT))
$(CXX) -shared $(libflext_la_LDFLAGS) $(LIBS) -o $(libflext_la_NAME) $^
$(libflext_pd_la_NAME): $(patsubst %.cpp,libflext_pd_la-%.o,$(SRCS_FLEXT))
$(CXX) $(libflext_pd_la_LDFLAGS) $(LIBS) -o $(libflext_pd_la_NAME) $^
libflext_la-%.o : %.cpp
$(CXX) -shared -c $(libflext_la_CXXFLAGS) $< -o $@
libflext_pd_la-%.o : %.cpp
$(CXX) -c $(libflext_pd_la_CXXFLAGS) $< -o $@
$(libflext_d_la_NAME): $(patsubst %.cpp,libflext_d_la-%.o,$(SRCS_FLEXT))
$(CXX) -shared $(libflext_d_la_LDFLAGS) $(LIBS) -o $(libflext_d_la_NAME) $^
$(libflext_pd_d_la_NAME): $(patsubst %.cpp,libflext_pd_d_la-%.o,$(SRCS_FLEXT))
$(CXX) $(libflext_pd_d_la_LDFLAGS) $(LIBS) -o $(libflext_pd_d_la_NAME) $^
libflext_d_la-%.o: %.cpp
$(CXX) -shared -c $(libflext_d_la_CXXFLAGS) $< -o $@
libflext_pd_d_la-%.o: %.cpp
$(CXX) -c $(libflext_pd_d_la_CXXFLAGS) $< -o $@
install-exec-local:
$(libLIBRARIES_INSTALL) $(libflext_la_NAME) $(DESTDIR)$(libdir)
$(libLIBRARIES_INSTALL) $(libflext_d_la_NAME) $(DESTDIR)$(libdir)
\ No newline at end of file
$(libLIBRARIES_INSTALL) $(libflext_pd_la_NAME) $(DESTDIR)$(libdir)
$(libLIBRARIES_INSTALL) $(libflext_pd_d_la_NAME) $(DESTDIR)$(libdir)
......@@ -29,7 +29,6 @@ SUBDIRS = \
EXTRA_DIST = \
readme.txt \
gpl.txt \
tutorial.dsw \
tutorial.sln
DIST_SUBDIRS = pd \
......
......@@ -8,8 +8,7 @@ NAME = adv1
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......
......@@ -8,8 +8,7 @@ NAME = adv2
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......
......@@ -8,8 +8,7 @@ NAME = adv3
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = attr1
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = attr2
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = attr3
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = bind1
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = buffer1
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = lib1
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = signal1
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = signal2
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = simple1
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = simple2
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = simple3
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -48,4 +47,4 @@ clean-local:
rm -f ./$(OBJECTS)
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
\ No newline at end of file
install ../$(TARGET) $(SYSDIR)extra
......@@ -8,8 +8,7 @@ NAME = sndobj1
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).cw \
$(NAME).dsp \
$(NAME).mcp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -50,4 +49,4 @@ clean-local:
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
endif
\ No newline at end of file
endif
......@@ -8,7 +8,6 @@ NAME = stk1
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).dsp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -49,4 +48,4 @@ clean-local:
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
endif
\ No newline at end of file
endif
......@@ -8,7 +8,6 @@ NAME = stk2
BUILT_SOURCES = main.cpp
EXTRA_DIST = main.cpp \
$(NAME).dsp \
$(NAME).vcproj
CXXFLAGS = @CXXFLAGS@ \
......@@ -49,4 +48,4 @@ clean-local:
install-exec-local:
install ../$(TARGET) $(SYSDIR)extra
endif
\ No newline at end of file
endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment