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

« back to all changes in this revision

Viewing changes to examples/Makefile.pdcompile

  • 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:
14
14
###--------------------------------------------
15
15
### compilation flags for Linux
16
16
###
17
 
LINUXCFLAGS     := -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC \
18
 
    -Wall -W -Wshadow -Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS)
19
 
LINUXINCLUDE    :=
 
17
LINUXCFLAGS     := -DPD -fPIC -Wall -O3 -mfpmath=sse -msse -msse2 -msse3 -ffast-math
 
18
LINUXINCLUDE    := -I/usr/include/pdextended
20
19
 
21
20
###--------------------------------------------
22
21
### compilation flags for Darwin
23
22
###
24
 
DARWINCFLAGS    := -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC \
25
 
      -Wall -W -Wshadow -Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS)
 
23
DARWINCFLAGS    := -DPD -fPIC -Wall -O3 -mfpmath=sse -msse -msse2 -msse3 -ffast-math
26
24
DYNLOAD_FLAGS   := -bundle -undefined suppress -flat_namespace
27
25
DARWININCLUDE   := -I/Applications/Pd-extended.app/Contents/Resources/include/
28
26
 
66
64
$(DEST)%~.pd_linux: $(DEST)%.cpp
67
65
        $(CXX) $(LINUXCFLAGS) $(LINUXINCLUDE) -shared -Dmydsp=$(patsubst %~.pd_linux,%,$(notdir $@)) $< -o $@
68
66
 
 
67
# On Darwin we create both 32-bits and 64-bits intel code
69
68
$(DEST)%~.pd_darwin: $(DEST)%.cpp
70
 
        $(CXX) $(DARWINCFLAGS) $(DARWININCLUDE) $(DYNLOAD_FLAGS) -Dmydsp=$(patsubst %~.pd_darwin,%,$(notdir $@)) $< -o $@
 
69
        $(CXX) -arch i386 $(DARWINCFLAGS) $(DARWININCLUDE) $(DYNLOAD_FLAGS) -Dmydsp=$(patsubst %~.pd_darwin,%,$(notdir $@)) $< -o $@.i386
 
70
        $(CXX) -arch x86_64 $(DARWINCFLAGS) $(DARWININCLUDE) $(DYNLOAD_FLAGS) -Dmydsp=$(patsubst %~.pd_darwin,%,$(notdir $@)) $< -o $@.x86_64
 
71
        lipo -create $@.i386 $@.x86_64  -output $@
 
72
        rm $@.i386 $@.x86_64
71
73
 
72
74
clean:
73
75
        rm -rf $(DEST)