-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (32 loc) · 852 Bytes
/
Makefile
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
39
40
41
# library name
lib.name = dualsense
SOURCE_DIR = ./hidapi
XINCLUDE = -I ${SOURCE_DIR}/hidapi
cflags = ${XINCLUDE} -I . -DHAVE_CONFIG_H
dslink.class.sources = dslink.c
define forLinux
dslink.class.sources += ${SOURCE_DIR}/linux/hid.c
ldlibs += -ludev -lrt
endef
define forWindows
dslink.class.sources += ${SOURCE_DIR}/windows/hid.c
XINCLUDE += -I ${SOURCE_DIR}/windows
ldlibs += -mwindows
endef
define forDarwin
dslink.class.sources += ${SOURCE_DIR}/mac/hid.c
XINCLUDE += -I ${SOURCE_DIR}/mac
ldlibs += -framework IOKit -framework CoreFoundation -framework AppKit
endef
datafiles = \
dsshow.pd_lua \
dsshow-shapes.lua \
dslink-help.pd \
sensors2quat.pd \
sensors2impulse.pd \
sensors2pitchroll.pd \
rad2turn.pd \
${empty}
objectsdir = ./build
PDLIBBUILDER_DIR=./pd-lib-builder
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder