-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
57 lines (47 loc) · 1.15 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Makefile for iemnet
lib.name = iemnet
lib.setup.sources = iemnet_setup.c
class.sources = \
tcpserver.c \
tcpclient.c \
tcpsend.c \
tcpreceive.c \
udpreceive.c \
udpsend.c \
udpclient.c \
udpserver.c \
$(empty)
shared.sources = \
iemnet.c \
iemnet_data.c \
iemnet_receiver.c \
iemnet_sender.c \
$(empty)
datafiles = \
iemnet-meta.pd \
tcpclient-help.pd \
tcpreceive-help.pd \
tcpsend-help.pd \
tcpserver-help.pd \
udpclient-help.pd \
udpreceive-help.pd \
udpsend-help.pd \
udpserver-help.pd \
udpsndrcv-help.pd \
udpsndrcv.pd \
LICENSE.md \
README.md \
$(empty)
iemnet.version := $(shell sed -n \
's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' \
iemnet-meta.pd)
cflags = -DVERSION='"$(iemnet.version)"'
define forWindows
ldlibs = -lwsock32 -lpthread
endef
-include Makefile.local
# This Makefile is based on the Makefile from pd-lib-builder written by
# Katja Vetter. You can get it from:
# https://github.com/pure-data/pd-lib-builder
PDLIBBUILDER_DIR=pd-lib-builder/
include $(firstword $(wildcard $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder Makefile.pdlibbuilder))