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
|
lib.name = wiimote
class.sources = \
wiimote.c \
$(empty)
datafiles = \
$(wildcard *.pd) \
README \
CHANGES \
LICENSE \
$(empty)
datadirs = \
$(empty)
PKG_CONFIG ?= pkg-config
CWIID_CFLAGS := $(shell $(PKG_CONFIG) --cflags cwiid)
CWIID_LIBS := $(shell $(PKG_CONFIG) --libs cwiid)
wiimote.version := $(shell sed -n \
's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' \
wiimote-meta.pd)
cflags = $(CWIID_CFLAGS) -DVERSION='"$(wiimote.version)"'
ldlibs = $(CWIID_LIBS)
PDLIBBUILDER_DIR=pd-lib-builder/
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|