File: Makefile

package info (click to toggle)
pd-lib-builder 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: ansic: 206; makefile: 139; sh: 117; cpp: 19
file content (41 lines) | stat: -rw-r--r-- 1,367 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
40
41
# Makefile to build class 'multishared' for Pure Data.
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
# settings and rules.

# library name
lib.name = multishared

# common functions
shared.sources = shared.c

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

# all extra files to be included in binary distribution of the library
datafiles = multishared-help.pd multishared-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
ifeq ($(shared.extension), $(extension))
	test -e lib$(lib.name).$(shared.extension)
else
	test -e lib$(lib.name).$(extension).$(shared.extension)
endif
	test -e multisharedA.$(extension)
	test -e multisharedB.$(extension)
installcheck: install
ifeq ($(shared.extension), $(extension))
	test -e $(installpath)/lib$(lib.name).$(shared.extension)
else
	test -e $(installpath)/lib$(lib.name).$(extension).$(shared.extension)
endif
	test -e $(installpath)/multisharedA.$(extension)
	test -e $(installpath)/multisharedB.$(extension)
	test -e $(installpath)/multishared-help.pd
	test -e $(installpath)/multishared-meta.pd