~ubuntu-branches/ubuntu/saucy/faust/saucy

« back to all changes in this revision

Viewing changes to examples/faust-stk/Makefile.ladspacompile

  • Committer: Package Import Robot
  • Author(s): Mario Lang
  • Date: 2012-04-04 13:52:01 UTC
  • mfrom: (1.1.6) (3.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20120404135201-hpsrk87x3hga94tc
Tags: 0.9.46-2
* Fix "ftbfs with GCC-4.7":
  - debian/patches/unistd: Include <unistd.h> where necessary.
    (Closes: #667163)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ARCH    := ladspa.cpp
 
2
DEST    := ladspadir/
 
3
dspsrc  := $(wildcard *.dsp)
 
4
cppsrc  := $(addprefix $(DEST), $(dspsrc:.dsp=.cpp))
 
5
modules := $(addprefix $(DEST),  $(dspsrc:%.dsp=%.so))
 
6
 
 
7
###allcpp: $(cppsrc)
 
8
 
 
9
allmodules: $(modules)
 
10
 
 
11
ifeq ($(system), Darwin)
 
12
SHAREDFLAG := -bundle
 
13
else
 
14
SHAREDFLAG := -shared
 
15
endif
 
16
 
 
17
$(DEST)%.so: $(DEST)%.cpp
 
18
        $(CXX) -I. -Wall $(LIB) -fPIC -DPIC $(SHAREDFLAG) $(CXXFLAGS) -Dmydsp=$(patsubst %.so,%,$(notdir $@)) $< -o $@
 
19
 
 
20
$(DEST)%.cpp: %.dsp 
 
21
        faust $(VEC) -a $(ARCH) $< -o $@
 
22
 
 
23
clean:
 
24
        rm -rf $(DEST)