add system build to autoconf/automake
[goodguy/history.git] / cinelerra-5.1 / plugins / Makefile
1 TOPDIR ?= $(CURDIR)/..
2 include $(TOPDIR)/global_config
3
4 ifeq ($(WANT_DVB), yes)
5 LIVEDVB = liveaudio livevideo
6 endif
7
8 # burn must come before any other effecttv plugin
9 # colors must come before any plugin
10 # parametric must come before fourier plugins
11 # motion must come before perspective
12
13 DIRS = \
14         1080to480 \
15         1080to540 \
16         720to480 \
17         aging \
18         audioscope \
19         bandslide \
20         bandwipe \
21         bluebanana \
22         blur \
23         brightness \
24         burn \
25         C41 \
26         cdripper \
27         chromakey \
28         chromakeyhsv \
29         color3way \
30         colorbalance \
31         compressor \
32         crossfade \
33         dcoffset \
34         decimate \
35         deinterlace \
36         deinterlace-cv \
37         delayaudio \
38         delayvideo \
39         denoise \
40         denoisefft \
41         denoiseseltempavg \
42         denoisevideo \
43         despike \
44         diffkey \
45         dissolve \
46         dot \
47         downsample \
48         edge \
49         echo \
50         echocancel \
51         fieldframe \
52         flash \
53         flip \
54         framefield \
55         freeverb \
56         freezeframe \
57         gain \
58         gamma \
59         gradient \
60         graphic \
61         histogram \
62         histogram_bezier \
63         holo \
64         huesaturation \
65         interpolate \
66         interpolateaudio \
67         interpolatevideo \
68         invertaudio \
69         invertvideo \
70         irissquare \
71         ivtc \
72         lens \
73         level \
74         libeffecttv \
75         linearblur \
76         $(LIVEDVB) \
77         loopaudio \
78         loopvideo \
79         motion \
80         motion2point \
81         motionblur \
82         normalize \
83         oilpainting \
84         overlay \
85         overlayaudio \
86         parametric \
87         perspective \
88         photoscale \
89         pitch \
90         polar \
91         radialblur \
92         reframe \
93         reframert \
94         removegaps \
95         reroute \
96         resample \
97         resamplert \
98         reverb \
99         reverseaudio \
100         reversevideo \
101         rgb601 \
102         rgbshift \
103         rotate \
104         scale \
105         shapewipe \
106         sharpen \
107         shiftinterlace \
108         slide \
109         spectrogram \
110         svg \
111         swapchannels \
112         swapframes \
113         synthesizer \
114         threshold \
115         timeavg \
116         timefront \
117         timestretch \
118         timestretchrt \
119         titler \
120         translate \
121         unsharp \
122         videoscope \
123         vocoder \
124         wave \
125         whirl \
126         wipe \
127         yuv \
128         yuvshift \
129         zoom \
130         zoomblur \
131         theme_blond \
132         theme_blond_cv \
133         theme_blue \
134         theme_blue_dot \
135         theme_bright \
136         theme_hulk \
137         theme_pinklady \
138         theme_suv \
139         theme_unflat \
140
141 # too costly
142 #       findobject \
143 #       greycstoration \
144 # not finished
145 #       denoisemjpeg \
146
147 PLUGIN_DIR = $(BINDIR)/plugins
148 DATA = $(PLUGIN_DIR)/fonts $(PLUGIN_DIR)/shapes
149 LADSPA_DIR = $(BINDIR)/ladspa
150
151 all:    $(PLUGIN_DIR) $(DIRS) $(DATA) $(LADSPA_DIR)
152
153 $(PLUGIN_DIR):
154         mkdir -p $@
155
156 $(DATA):
157         cp -a $(notdir $@) $(PLUGIN_DIR)/.
158
159 $(LADSPA_DIR):
160         mkdir -p $@
161         if [ -d $(THIRDPARTY)/ladspa-*/usr/local/lib/ladspa ]; then \
162                 cp -a $(THIRDPARTY)/ladspa-*/usr/local/lib/ladspa/. $@/. ; \
163         fi
164
165 # parallel compilation of all directories
166 .PHONY: $(DIRS)
167 $(DIRS):
168         $(MAKE) -C $@
169
170 clean:
171         rm -rf $(foreach d,$(DIRS),$(d)/$(OBJDIR))
172         rm -rf $(PLUGIN_DIR) $(LADSPA_DIR)
173
174 install:
175
176 # dependencies for parallel build
177 aging:          libeffecttv
178 burn:           libeffecttv
179 dot:            libeffecttv
180 holo:           libeffecttv
181 motion2point:   downsample motion
182 motion:         downsample
183 timestretchrt:  timestretch
184