source: roaraudio/plugins/universal/Makefile

tip
Last change on this file was 6019:24c5f5131366, checked in by phi, 7 years ago

added SLFI filter 'calc'

File size: 1.9 KB
Line 
1include ../../Makefile.conf
2include ../../Makefile.inc
3
4TARGETS_PROTO=echo daytime discard http
5TARGETS_SLFI=helloworld chain alternative static file2filter channel2event trigger map random strobe calc
6TARGETS_SLFI_LIBM=fade
7TARGETS_SERVICE=about
8TARGETS_MISC=plugin-info helloworld debug-notify tic-tac-toe
9TARGETS_IO=piface
10TARGETS__NAMES=$(TARGETS_MISC) $(TARGETS_IO) $(foreach c,$(TARGETS_PROTO),protocol-$c) $(foreach c,$(TARGETS_SERVICE),service-$c) $(foreach c,$(TARGETS_SLFI),filter-slfi-$c)
11ifneq ($(lib_m),)
12TARGETS__NAMES+=$(foreach c,$(TARGETS_SLFI_LIBM),filter-slfi-$c)
13endif
14TARGETS       = $(foreach c,$(TARGETS__NAMES),$c$(SHARED_SUFFIX))
15
16#DEFINES        = -DDEBUG
17DEFINES+= -DROAR_DBG_PREFIX=\"'$(shell basename $+ .c)'\"
18INCLUDE = -I../../include -I../..
19CFLAGS += $(DEBUG_g) $(Wall) $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
20LDFLAGS+= $(DEBUG_g) $(Wall) $(Wextra) $(OPTI_O) $(SHARED) -L../../lib $(LDPATH)
21LIBS    = $(LIBROAR)
22
23all: ${TARGETS}
24clean:
25        rm -f ${TARGETS} *.o
26new: clean all
27
28install: all
29        cp $(cp_v) ${TARGETS} '$(DESTDIR)$(PREFIX_PLUGINS)/universal/universal/$(DEV_VENDOR)-$(DEV_VENDOR_NAME)/'
30semi-install: all
31        sh -c 'set -e; for file in *$(SHARED_SUFFIX); do ln -fs `pwd`/$$file '$(DESTDIR)$(PREFIX_PLUGINS)/universal/universal/$(DEV_VENDOR)-$(DEV_VENDOR_NAME)/'; done'
32
33%$(SHARED_SUFFIX): %.o
34        $(CC) $(LDFLAGS) -o $@ $+ $(LIBS)
35
36protocol-http$(SHARED_SUFFIX): protocol-http.o
37        $(CC) $(LDFLAGS) -o $@ $+ $(LIBS) $(lib_uste)
38
39# XXX: Very strange workaround:
40$(foreach c,$(TARGETS_SLFI),filter-slfi-$c$(SHARED_SUFFIX)): $(foreach c,$(TARGETS_SLFI),filter-slfi-$c.o)
41        $(CC) $(LDFLAGS) -o $@ $(shell basename $@ $(SHARED_SUFFIX)).o $(LIBS) $(LIBROARLIGHT)
42$(foreach c,$(TARGETS_SLFI_LIBM),filter-slfi-$c$(SHARED_SUFFIX)): $(foreach c,$(TARGETS_SLFI_LIBM),filter-slfi-$c.o)
43        $(CC) $(LDFLAGS) -o $@ $(shell basename $@ $(SHARED_SUFFIX)).o $(LIBS) $(LIBROARLIGHT) $(lib_m)
Note: See TracBrowser for help on using the repository browser.