X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/interpretor/faust-0.9.47mr3/examples/faust-stk/Makefile.qtcompile diff --git a/interpretor/faust-0.9.47mr3/examples/faust-stk/Makefile.qtcompile b/interpretor/faust-0.9.47mr3/examples/faust-stk/Makefile.qtcompile deleted file mode 100644 index 39abac2..0000000 --- a/interpretor/faust-0.9.47mr3/examples/faust-stk/Makefile.qtcompile +++ /dev/null @@ -1,62 +0,0 @@ -###-------------------------------------------- -### DEST : directory where to put binaries -### ARCH : faust architecture file - -system := $(shell uname -s) -dspsrc := $(wildcard *.dsp) -cppsrc := $(addprefix $(DEST), $(dspsrc:.dsp=.cpp)) - - -### check what type of applications to build (MacOSX Darwin or Linux) -ifeq ($(system), Darwin) -appls := $(addprefix $(DEST), $(dspsrc:.dsp=.app)) -SPEC := -spec macx-g++ -else -appls := $(addprefix $(DEST), $(dspsrc:.dsp=)) -SPEC := -endif -### -------------------------------------------- - - -### allocate a unique directory -TDR := $(shell mktemp -d -t FAUST.XXXXXX) -TMP = $(TDR)/$(<:.dsp=) -### -------------------------------------------- - - -all : $(appls) - - -### Darwin -$(DEST)%.app : %.dsp - install -d $(TMP) - faust -a $(ARCH) $(VEC) $< -o $(TMP)/$<.cpp - cd $(TMP); qmake -project "$(DEFS)" "INCLUDEPATH+=/usr/local/lib/faust/" "INCLUDEPATH+=$(PWD)" "INCLUDEPATH+=/usr/local/lib/faust/osclib" "LIBS+=$(LIB)" "HEADERS+=/usr/local/lib/faust/gui/faustqt.h" - cd $(TMP); qmake $(SPEC) - make -C $(TMP) - rm -rf $@ - mv $(TMP)/$(<:.dsp=.app) $(DEST) - rm -rf $(TDR) - - -### Linux -hdir1 := $(wildcard /usr/local/lib/faust/gui/faustqt.h) -hdir2 := $(wildcard /usr/share/faust/faustqt.h) -hdir3 := $(wildcard /usr/local/lib/faust/faustqt.h) -hdir23 := $(if $(hdir2),$(dir $(hdir2)),$(dir $(hdir3))) -hdir := $(if $(hdir1),$(dir $(hdir1)),$(hdir23)) -qm4 := $(shell which qmake-qt4) -qm := $(if $(qm4),$(qm4),qmake) - -$(DEST)% : %.dsp - rm -rf $(TMP) - install -d $(TMP) - faust -a $(ARCH) $(VEC) $< -o $(TMP)/$<.cpp - cd $(TMP); $(qm) -project "$(DEFS)" "INCLUDEPATH+=/usr/local/lib/faust/" "INCLUDEPATH+=$(PWD)" "INCLUDEPATH+=/usr/local/lib/faust/osclib" "LIBS+=$(LIB)" "HEADERS+=$(hdir)faustqt.h" - cd $(TMP); $(qm) $(SPEC) - make -C $(TMP) - mv $(TMP)/$(<:.dsp=) $@ - rm -rf $(TMP) - -clean: - rm -rf $(DEST)