Commit f3f310ae authored by thomas's avatar thomas
Browse files

no message


git-svn-id: https://svn.grrrr.org/ext/trunk@242 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent 7a5c990f
......@@ -79,7 +79,7 @@ clean:
rm -f $(TARGDIR)/*.o $(TARGET) $(TARGET_D) $(TARGET_T) $(TARGET_TD)
$(INSTDIR):
mkdir $(INSTDIR)
-mkdir $(INSTDIR)
install:: $(INSTDIR)
......
......@@ -9,6 +9,11 @@ PDPATH=/usr/local/include
# where do the flext libraries reside?
FLEXTPATH=/usr/local/lib/pd/flext
# where should the examples be built?
OUTPATH=./pd-cygwin
# where should the examples be built? (relative path)
OUTPATH=./pd-linux
# install the examples? (yes/no)
INSTALL=yes
# where should the examples be installed?
INSTPATH=${FLEXTPATH}/tutorial
......@@ -6,21 +6,13 @@
#
# -----------------------------------------------------
# pd path
PDPATH=/usr/local/include
include config-pd-linux.txt
# where to build
TARGDIR=./pd-linux
# flext stuff ### EDIT! ###
FLEXTPATH=/usr/local/lib/pd/flext
FLEXTLIB=$(FLEXTPATH)/flext_t.a # take threaded library for all
# where to install
INSTDIR=/usr/local/lib/pd/flext/tutorial
# compiler+linker stuff ### EDIT! ###
INCLUDES=$(PDPATH)
INCLUDES=$(PDPATH)/src
LIBPATH=
FLAGS=-DPD -DFLEXT_THREADS
CFLAGS=-O6 -mcpu=pentiumpro
......@@ -35,32 +27,31 @@ LIBS=m
EXAMPLES=simple1 simple2 simple3 adv1 signal1~ signal2~ thread1 thread2
TARGETS=$(patsubst %,$(TARGDIR)/%.pd_linux,$(EXAMPLES))
TARGETS=$(patsubst %,$(OUTPATH)/%.pd_linux,$(EXAMPLES))
# default target
all: $(TARGDIR) $(TARGETS)
all: $(OUTPATH) $(TARGETS)
$(TARGDIR)/%~.pd_linux : $(TARGDIR)/%.pd_linux
$(OUTPATH)/%~.pd_linux : $(OUTPATH)/%.pd_linux
mv $^ $@
$(SRCS): $(HDRS)
touch $@
$(TARGDIR):
mkdir $(TARGDIR)
$(OUTPATH):
mkdir $(OUTPATH)
$(TARGDIR)/%.o : %/main.cpp
$(OUTPATH)/%.o : %/main.cpp
$(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@
$(TARGDIR)/%.pd_linux : $(TARGDIR)/%.o $(FLEXTLIB)
$(OUTPATH)/%.pd_linux : $(OUTPATH)/%.o $(FLEXTLIB)
$(CXX) $(LDFLAGS) -shared $(patsubst %,-L%,$(LIBPATH)) $^ $(patsubst %,-l%,$(LIBS)) -o $@
chmod 755 $@
.PHONY: clean
clean:
rm -f $(TARGDIR)/*.o $(TARGETS)
rm -f $(OUTPATH)/*.o $(TARGETS)
......@@ -36,3 +36,4 @@ o Metrowerks CodeWarrior V6: edit & use the several ".cw" project files
o Apple MPW-PR: edit & use the "flext-tut.mpw" makefile
----------------------------------------------------------------------------
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