aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 46c4b1b6d9a17c0ce319aea252740f986f2d6955 (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File: ./src/Makefile.am
# Package: pdstring
# Description:
#   + src-level automake file
#
# Process this file with Automake to create Makefile.in.
#-----------------------------------------------------------------------

#-----------------------------------------------------------------------
# Options & Subdirectories
#-----------------------------------------------------------------------

##--- common includes
include $(top_srcdir)/common/pdexternal.am

##--- recursion subdirectories
#SUBDIRS = 

#-----------------------------------------------------------------------
# sources (using PROGRAMS)
#-----------------------------------------------------------------------

## --- externals (as _PROGRAMS)
pdexec_PROGRAMS = pdstring
if WANT_OBJECT_EXTERNALS
 pdexec_PROGRAMS += \
	any2bytes \
	bytes2any \
	bytes2wchars \
	wchars2bytes \
	printbytes \
	printwchars
endif

## --- possible single-object externals (as _PROGRAMS)
EXTRA_PROGRAMS = \
	pdstring \
	any2bytes \
	bytes2any \
	bytes2wchars \
	wchars2bytes \
	printbytes \
	printwchars

MOOPDUTILS_H = $(top_srcdir)/common/mooPdUtils.h
any2bytes_SOURCES = any2bytes.c $(MOOPDUTILS_H) pdstringUtils.h pdstringUtils.c
bytes2any_SOURCES = bytes2any.c $(MOOPDUTILS_H) pdstringUtils.h pdstringUtils.c
bytes2wchars_SOURCES = bytes2wchars.c $(MOOPDUTILS_H) pdstringUtils.h pdstringUtils.c
wchars2bytes_SOURCES = wchars2bytes.c $(MOOPDUTILS_H) pdstringUtils.h pdstringUtils.c
printbytes_SOURCES = printbytes.c $(MOOPDUTILS_H) pdstringUtils.h pdstringUtils.c
printwchars_SOURCES = printwchars.c $(MOOPDUTILS_H) pdstringUtils.h pdstringUtils.c
pdstring_SOURCES = pdstring.c $(MOOPDUTILS_H) pdstringUtils.h pdstringUtils.c

#-----------------------------------------------------------------------
# patches, etc.
#-----------------------------------------------------------------------

## --- patches
pdexterns_DATA = \
	any2wchars.pd \
	wchars2any.pd \
	any2string.pd \
	string2any.pd

## --- documentation
pddoc_DATA = \
	pdstring-help.pd \
	any2string-help.pd \
	string2any-help.pd \
	any2bytes-help.pd \
	bytes2any-help.pd \
	bytes2wchars-help.pd \
	wchars2bytes-help.pd \
	any2wchars-help.pd \
	wchars2any-help.pd \
	printbytes-help.pd \
	printwchars-help.pd


#-----------------------------------------------------------------------
# aliases via install hook
#-----------------------------------------------------------------------

if WANT_OBJECT_EXTERNALS
all-local:
	rm -f any2string.$(PDEXT)
	rm -f string2any.$(PDEXT)
endif

install-data-hook:
	rm -f $(pdexternsdir)/any2string.$(PDEXT)
	rm -f $(pdexternsdir)/string2any.$(PDEXT)

uninstall-local:
	rm -f $(pdexternsdir)/any2string.$(PDEXT)
	rm -f $(pdexternsdir)/string2any.$(PDEXT)

#-----------------------------------------------------------------------
# Paths, etc.
#-----------------------------------------------------------------------

AM_CPPFLAGS = -I$(top_srcdir)/common