aboutsummaryrefslogtreecommitdiffstats
path: root/libng/contrib-plugins/Subdir.mk
blob: a34a2c4c38f77d043db1acd0a0392131c724840a (plain)
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
# targets to build
TARGETS-contrib-plugins := \
	libng/contrib-plugins/flt-smooth.so \
	libng/contrib-plugins/bilinear.so \
	libng/contrib-plugins/cubic.so \
	libng/contrib-plugins/linear-blend.so \
	libng/contrib-plugins/linedoubler.so

ifeq ($(FOUND_ALSA),yes)
TARGETS-contrib-plugins += \
	libng/contrib-plugins/snd-alsa.so
endif

# alsa is c++ and thus we should call g++ for linking ...
libng/contrib-plugins/snd-alsa.so : CC := $(CXX)

# linear-blend has mmx support ...
ifeq ($(USE_MMX),yes)
libng/contrib-plugins/linear-blend.so : CFLAGS += -DMMX=1
endif

# global targets
all:: $(TARGETS-contrib-plugins)

install::
	$(INSTALL_DIR) $(libdir)
	$(INSTALL_PROGRAM) -s $(TARGETS-contrib-plugins) $(libdir)

clean::
	rm -f $(TARGETS-contrib-plugins)

libng/contrib-plugins/flt-smooth.so:   libng/contrib-plugins/flt-smooth.o
libng/contrib-plugins/snd-alsa.so:     libng/contrib-plugins/snd-alsa.o
libng/contrib-plugins/bilinear.so:     libng/contrib-plugins/bilinear.o
libng/contrib-pluginsa/cubic.so:       libng/contrib-plugins/cubic.o
libng/contrib-plugins/linear-blend.so: libng/contrib-plugins/linear-blend.o
libng/contrib-plugins/linedoubler.so:  libng/contrib-plugins/linedoubler.o

Privacy Policy