File: Makefile

package info (click to toggle)
pd-binfile 0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 428 kB
  • sloc: ansic: 455; makefile: 141; sh: 124; cpp: 19
file content (39 lines) | stat: -rw-r--r-- 1,121 bytes parent folder | download | duplicates (16)
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
# Makefile to build class 'multifor' for Pure Data.
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
# settings and rules.

# library name
lib.name = multifor

# input source file (class name == source file basename)
class.sources = multiforA.c

# additional classes
define forLinux
  class.sources += multiforB.c
endef
define forDarwin
  class.sources += multiforB.c
endef
define forWindows
  class.sources += multiforB.c
endef

# all extra files to be included in binary distribution of the library
datafiles = multifor-help.pd multifor-meta.pd

# include Makefile.pdlibbuilder
# (for real-world projects see the "Project Management" section
# in tips-tricks.md)
PDLIBBUILDER_DIR=../..
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder

# simplistic tests whether all expected files have been produced/installed
buildcheck: all
	test -e multiforA.$(extension)
	test -e multiforB.$(extension)
installcheck: install
	test -e $(installpath)/multiforA.$(extension)
	test -e $(installpath)/multiforB.$(extension)
	test -e $(installpath)/multifor-help.pd
	test -e $(installpath)/multifor-meta.pd