makefile 1.17 KB
Newer Older
1
# Makefile for mylib
Ivica Ico Bukvic's avatar
Ivica Ico Bukvic committed
2

3
lib.name = disis
Ivica Ico Bukvic's avatar
Ivica Ico Bukvic committed
4

5
6
7
8
9
10
11
class.sources = disis_phasor~.c
define forLinux
    class.sources += disis_netsend.c disis_netreceive.c
endef
define forDarwin
    class.sources += disis_netsend.c disis_netreceive.c
endef
Ivica Ico Bukvic's avatar
Ivica Ico Bukvic committed
12

13
datafiles = disis_phasor~-help.pd disis_netsend-help.pd disis_netreceive-help.pd disis_wiimote-help.pd disis_wiimote_legacy.pd README patch_name-help.pd patch_name.pd
Ivica Ico Bukvic's avatar
Ivica Ico Bukvic committed
14

15
16
17
18
19
20
21
22
23
# IMPORTANT! disis_wiimote requires a custom L2Ork version of cwiid library
# For the time being we statically link to a L2Ork version of cwiid library
# Change this paths if you are compiling disis_wiimote separately from
# the rest of the pd-l2ork source to reflect the correct location of the
# custom L2Ork version of the libcwiid
CWIID_PATH=./cwiid
CWIID_LIB_STATIC= $(CWIID_PATH)/libcwiid/libcwiid.a
CWIID_INCLUDE = -I$(CWIID_PATH)/libcwiid
cflags = $(CWIID_INCLUDE)
Ivica Ico Bukvic's avatar
Ivica Ico Bukvic committed
24

25
26
27
28
29
30
31
32
define forDarwin
    disis_wiimote.class.sources = disis_wiimote.c
    disis_wiimote.class.ldlibs = $(CWIID_LIB_STATIC) -lbluetooth -lpthread
endef
define forLinux
    disis_wiimote.class.sources = disis_wiimote.c
    disis_wiimote.class.ldlibs = $(CWIID_LIB_STATIC) -lbluetooth -lpthread
endef
Ivica Ico Bukvic's avatar
Ivica Ico Bukvic committed
33

34
include Makefile.pdlibbuilder