~ubuntu-branches/ubuntu/breezy/tap-plugins/breezy

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Anand Kumria
  • Date: 2005-02-24 09:40:13 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050224094013-g2dv7untdana9pwp
Tags: 0.7.0-1
New upstream release (closes: #294086)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#   along with this program; if not, write to the Free Software
15
15
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
16
#
17
 
#   $Id: Makefile,v 1.18 2004/02/04 14:42:04 tszilagyi Exp $
 
17
#   $Id: Makefile,v 1.16 2004/08/13 18:34:31 tszilagyi Exp $
18
18
 
19
19
 
20
20
#####################################################################
21
21
# PLEASE CHANGE THIS to your preferred installation location!
22
22
#
23
 
# Change this if you want to install somewhere else. In particularly
 
23
# Change this if you want to install somewhere else. In particular
24
24
# you may wish to remove the middle "local/" part of the path.
25
25
 
26
26
INSTALL_PLUGINS_DIR     =       /usr/local/lib/ladspa/
35
35
# GENERAL
36
36
 
37
37
CC              =       gcc
 
38
CFLAGS          =       -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC
 
39
LDFLAGS         =       -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt
38
40
 
39
 
PLUGINS         =       tap_tremolo.so \
 
41
PLUGINS         =       tap_autopan.so \
 
42
                        tap_chorusflanger.so \
 
43
                        tap_deesser.so \
 
44
                        tap_dynamics_m.so \
 
45
                        tap_dynamics_st.so \
40
46
                        tap_eq.so \
 
47
                        tap_eqbw.so \
 
48
                        tap_doubler.so \
 
49
                        tap_pinknoise.so \
 
50
                        tap_pitch.so \
 
51
                        tap_reflector.so \
 
52
                        tap_reverb.so \
 
53
                        tap_rotspeak.so \
 
54
                        tap_limiter.so \
 
55
                        tap_sigmoid.so \
41
56
                        tap_echo.so \
42
 
                        tap_limiter.so \
43
 
                        tap_reverb.so \
44
 
                        tap_autopan.so \
45
 
                        tap_deesser.so
 
57
                        tap_tremolo.so \
 
58
                        tap_tubewarmth.so \
 
59
                        tap_vibrato.so
 
60
 
46
61
 
47
62
all: $(PLUGINS)
48
63
 
49
64
# RULES TO BUILD PLUGINS FROM C CODE
50
65
 
51
 
tap_tremolo.so: tap_tremolo.c tap_utils.h ladspa.h
52
 
        $(CC) -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC tap_tremolo.c -o tap_tremolo.o
53
 
        $(CC) -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt -o tap_tremolo.so tap_tremolo.o
54
 
 
55
 
tap_eq.so: tap_eq.c tap_utils.h ladspa.h
56
 
        $(CC) -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC tap_eq.c -o tap_eq.o
57
 
        $(CC) -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt -o tap_eq.so tap_eq.o
58
 
 
59
 
tap_echo.so: tap_echo.c tap_utils.h ladspa.h
60
 
        $(CC) -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC tap_echo.c -o tap_echo.o
61
 
        $(CC) -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt -o tap_echo.so tap_echo.o
62
 
 
63
 
tap_reverb.so: tap_reverb.c tap_reverb.h tap_reverb_presets.h tap_utils.h ladspa.h
64
 
        $(CC) -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC tap_reverb.c -o tap_reverb.o
65
 
        $(CC) -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt -o tap_reverb.so tap_reverb.o
66
 
 
67
 
tap_limiter.so: tap_limiter.c tap_utils.h ladspa.h
68
 
        $(CC) -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC tap_limiter.c -o tap_limiter.o
69
 
        $(CC) -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt -o tap_limiter.so tap_limiter.o
70
 
 
71
 
tap_autopan.so: tap_autopan.c tap_utils.h ladspa.h
72
 
        $(CC) -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC tap_autopan.c -o tap_autopan.o
73
 
        $(CC) -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt -o tap_autopan.so tap_autopan.o
74
 
 
75
 
tap_deesser.so: tap_deesser.c tap_utils.h ladspa.h
76
 
        $(CC) -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC tap_deesser.c -o tap_deesser.o
77
 
        $(CC) -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt -o tap_deesser.so tap_deesser.o
 
66
tap_tremolo.so: tap_tremolo.o tap_utils.h ladspa.h
 
67
 
 
68
tap_eq.so: tap_eq.o tap_utils.h ladspa.h
 
69
 
 
70
tap_eqbw.so: tap_eqbw.o tap_utils.h ladspa.h
 
71
 
 
72
tap_echo.so: tap_echo.o tap_utils.h ladspa.h
 
73
 
 
74
tap_reverb.so: tap_reverb.o tap_reverb.h tap_reverb_presets.h tap_utils.h ladspa.h
 
75
 
 
76
tap_limiter.so: tap_limiter.o tap_utils.h ladspa.h
 
77
 
 
78
tap_autopan.so: tap_autopan.o tap_utils.h ladspa.h
 
79
 
 
80
tap_deesser.so: tap_deesser.o tap_utils.h ladspa.h
 
81
 
 
82
tap_vibrato.so: tap_vibrato.o tap_utils.h ladspa.h
 
83
 
 
84
tap_rotspeak.so: tap_rotspeak.o tap_utils.h ladspa.h
 
85
 
 
86
tap_pitch.so: tap_pitch.o tap_utils.h ladspa.h
 
87
 
 
88
tap_dynamics_m.so: tap_dynamics_m.o tap_dynamics_presets.h tap_utils.h ladspa.h
 
89
 
 
90
tap_dynamics_st.so: tap_dynamics_st.o tap_dynamics_presets.h tap_utils.h ladspa.h
 
91
 
 
92
tap_reflector.so: tap_reflector.o tap_utils.h ladspa.h
 
93
 
 
94
tap_pinknoise.so: tap_pinknoise.o tap_utils.h ladspa.h
 
95
 
 
96
tap_doubler.so: tap_doubler.o tap_utils.h ladspa.h
 
97
 
 
98
tap_sigmoid.so: tap_sigmoid.o tap_utils.h ladspa.h
 
99
 
 
100
tap_tubewarmth.so: tap_tubewarmth.o tap_utils.h ladspa.h
 
101
 
 
102
tap_chorusflanger.so: tap_chorusflanger.o tap_utils.h ladspa.h
78
103
 
79
104
 
80
105
# OTHER TARGETS
81
106
 
82
107
install: targets
83
 
        mkdir -p        $(INSTALL_PLUGINS_DIR)
84
 
        cp *.so         $(INSTALL_PLUGINS_DIR)
85
 
        mkdir -p        $(INSTALL_LRDF_DIR)
86
 
        cp tap-plugins.rdf $(INSTALL_LRDF_DIR)
 
108
        -mkdir -p               $(INSTALL_PLUGINS_DIR)
 
109
        cp *.so                 $(INSTALL_PLUGINS_DIR)
 
110
        -mkdir -p               $(INSTALL_LRDF_DIR)
 
111
        cp tap-plugins.rdf      $(INSTALL_LRDF_DIR)
 
112
        cp tap_reverb.rdf       $(INSTALL_LRDF_DIR)
87
113
 
88
114
targets:        $(PLUGINS)
89
115
 
94
120
        -rm -f `find . -name "*.o"`
95
121
        -rm -f `find .. -name "*~"`
96
122
 
 
123
%.o: %.c
 
124
        @echo "Compiling $<"
 
125
        @$(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@ 
 
126
 
 
127
%.so: %.o
 
128
        @echo "Creating  $@"
 
129
        @$(CC) $(LDFLAGS) -o $@ $<