File: Makefile

package info (click to toggle)
tap-plugins 0.7.0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 568 kB
  • ctags: 1,162
  • sloc: ansic: 9,556; makefile: 111
file content (129 lines) | stat: -rw-r--r-- 3,538 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#   Copyright (C) 2004 Tom Szilagyi
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#   $Id: Makefile,v 1.16 2004/08/13 18:34:31 tszilagyi Exp $


#####################################################################
# PLEASE CHANGE THIS to your preferred installation location!
#
# Change this if you want to install somewhere else. In particular
# you may wish to remove the middle "local/" part of the path.

INSTALL_PLUGINS_DIR	=	/usr/local/lib/ladspa/
INSTALL_LRDF_DIR	=	/usr/local/share/ladspa/rdf/

# NO EDITING below this line is required
# if all you want to do is install and use the plugins.
#####################################################################



# GENERAL

CC		=	gcc
CFLAGS		=	-I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC
LDFLAGS		=	-nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt

PLUGINS		=	tap_autopan.so \
			tap_chorusflanger.so \
			tap_deesser.so \
			tap_dynamics_m.so \
			tap_dynamics_st.so \
			tap_eq.so \
			tap_eqbw.so \
			tap_doubler.so \
			tap_pinknoise.so \
			tap_pitch.so \
			tap_reflector.so \
			tap_reverb.so \
			tap_rotspeak.so \
			tap_limiter.so \
			tap_sigmoid.so \
			tap_echo.so \
			tap_tremolo.so \
			tap_tubewarmth.so \
			tap_vibrato.so


all: $(PLUGINS)

# RULES TO BUILD PLUGINS FROM C CODE

tap_tremolo.so: tap_tremolo.o tap_utils.h ladspa.h

tap_eq.so: tap_eq.o tap_utils.h ladspa.h

tap_eqbw.so: tap_eqbw.o tap_utils.h ladspa.h

tap_echo.so: tap_echo.o tap_utils.h ladspa.h

tap_reverb.so: tap_reverb.o tap_reverb.h tap_reverb_presets.h tap_utils.h ladspa.h

tap_limiter.so: tap_limiter.o tap_utils.h ladspa.h

tap_autopan.so: tap_autopan.o tap_utils.h ladspa.h

tap_deesser.so: tap_deesser.o tap_utils.h ladspa.h

tap_vibrato.so: tap_vibrato.o tap_utils.h ladspa.h

tap_rotspeak.so: tap_rotspeak.o tap_utils.h ladspa.h

tap_pitch.so: tap_pitch.o tap_utils.h ladspa.h

tap_dynamics_m.so: tap_dynamics_m.o tap_dynamics_presets.h tap_utils.h ladspa.h

tap_dynamics_st.so: tap_dynamics_st.o tap_dynamics_presets.h tap_utils.h ladspa.h

tap_reflector.so: tap_reflector.o tap_utils.h ladspa.h

tap_pinknoise.so: tap_pinknoise.o tap_utils.h ladspa.h

tap_doubler.so: tap_doubler.o tap_utils.h ladspa.h

tap_sigmoid.so: tap_sigmoid.o tap_utils.h ladspa.h

tap_tubewarmth.so: tap_tubewarmth.o tap_utils.h ladspa.h

tap_chorusflanger.so: tap_chorusflanger.o tap_utils.h ladspa.h


# OTHER TARGETS

install: targets
	-mkdir -p		$(INSTALL_PLUGINS_DIR)
	cp *.so 		$(INSTALL_PLUGINS_DIR)
	-mkdir -p		$(INSTALL_LRDF_DIR)
	cp tap-plugins.rdf 	$(INSTALL_LRDF_DIR)
	cp tap_reverb.rdf 	$(INSTALL_LRDF_DIR)

targets:	$(PLUGINS)

always:	

clean:
	-rm -f `find . -name "*.so"`
	-rm -f `find . -name "*.o"`
	-rm -f `find .. -name "*~"`

%.o: %.c
	@echo "Compiling $<"
	@$(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@ 

%.so: %.o
	@echo "Creating  $@"
	@$(CC) $(LDFLAGS) -o $@ $<