source: roaraudio/plugins/universal/Makefile @ 5439:7950543cabbc

Last change on this file since 5439:7950543cabbc was 5439:7950543cabbc, checked in by phi, 10 years ago

added example plugin

File size: 787 bytes
RevLine 
[5424]1include ../../Makefile.conf
2include ../../Makefile.inc
3
[5439]4TARGETS=plugin-info$(SHARED_SUFFIX) helloworld$(SHARED_SUFFIX)
[5424]5
6#DEFINES        = -DDEBUG
7INCLUDE = -I../include -I../include/libroar -I../..
8CFLAGS += -g -Wall -Wextra $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
9LDFLAGS+= -g -Wall -Wextra $(OPTI_O) $(SHARED) $(LDPATH)
10LIBS    = $(LIBROAR)
11
12all: ${TARGETS}
13clean:
14        rm -f ${TARGETS} *.o
15new: clean all
16
[5426]17install: all
18        cp $(cp_v) ${TARGETS} '$(DESTDIR)$(PREFIX_PLUGINS)/universal/universal/$(DEV_VENDOR)-$(DEV_VENDOR_NAME)/'
19semi-install: all
20        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'
21
[5424]22%$(SHARED_SUFFIX): %.o
23        $(CC) $(LDFLAGS) -o $@ $+ $(LIBS)
Note: See TracBrowser for help on using the repository browser.