summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 08c4c949f4e011d9dea0ae3d2f2c76ca9b9d1538 (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163

SUBDIRS = docs

ACLOCAL_AMFLAGS = -I m4

SPEC_FILE = esound.spec

INCLUDES = $(AUDIOFILE_CFLAGS) -DSYSCONFDIR=\"$(sysconfdir)\" \
    -DSERVERDIR=\"$(ESD_DIR)\"

if BUILD_ESDDSP
ESDDSP = esddsp
libesddsp_la = libesddsp.la
endif
if BUILD_ESDPLAY
ESDPLAY = esdplay
endif

getopt_extra = getopt.c getopt1.c

if NEED_GETOPT
getopt_src = $(getopt_extra)
endif

bin_SCRIPTS = \
	$(ESDDSP)	\
	esd-config

lib_LTLIBRARIES = libesd.la $(libesddsp_la)

libesd_la_CFLAGS = $(AM_CFLAGS)
libesd_la_LDFLAGS = -version-info $(ESD_VERSION_INFO) -no-undefined
libesd_la_LIBADD = $(AUDIOFILE_LIBS) $(SOUND_LIBS)

libesd_la_SOURCES = \
	esdlib.c	\
	esdmgr.c	\
	esdfile.c	\
	esd-config.h	\
	esd_config.c	\
	audio.c		\
	genrand.c	\
	genrand.h	\
	util.c

# one of these gets included by audio.c
AUDIO_BACKENDS = \
	audio_aix.c		\
	audio_alsa.c		\
	audio_alsa09.c  	\
	audio_arts.c		\
	audio_coreaudio.c	\
	audio_dart.c		\
	audio_hpux.c		\
	audio_mklinux.c		\
	audio_irix.c		\
	audio_none.c		\
	audio_osf.c		\
	audio_oss.c		\
	audio_solaris.c		\
	audio_win32.c

libesddsp_la_LDFLAGS = -version-info $(ESD_VERSION_INFO)
libesddsp_la_LIBADD = libesd.la $(DL_LIB) -lm

libesddsp_la_SOURCES = \
	esddsp.c


include_HEADERS = \
	esd.h

esddir = @ESD_DIR@

esd_PROGRAMS = \
	esd		

bin_PROGRAMS = \
	esdcat		\
	esdctl		\
	esdfilt		\
	esdmon		\
	esdrec		\
	esdsample	\
	esdloop		\
	$(ESDPLAY)

esd_SOURCES = 	\
	esd.c 		\
	clients.c	\
	filter.c	\
	mix.c		\
	players.c	\
	proto.c		\
	samples.c	\
	$(getopt_src)   \
	esd-config.h	\
	esd-server.h

esdcat_SOURCES = \
	esdcat.c

esdctl_SOURCES = \
	$(getopt_src) \
	esdctl.c

esdfilt_SOURCES = \
	esdfilt.c

esdmon_SOURCES = \
	esdmon.c

esdrec_SOURCES = \
	esdrec.c

esdsample_SOURCES = \
	esdsample.c

esdloop_SOURCES = \
	esdloop.c

esdplay_SOURCES = \
	$(getopt_src) \
	esdplay.c

LDADD = libesd.la $(AUDIOFILE_LIBS)

esd_LDADD = $(WRAP_LIB) $(LDADD)

m4datadir = $(datadir)/aclocal
m4data_DATA = esd.m4

esdconfdir = $(sysconfdir)
esdconf_DATA = esd.conf

$(PACKAGE)-$(VERSION).tar.gz: dist

rpm: $(PACKAGE)-$(VERSION).tar.gz
	cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
	rpm -ba $(SPEC_FILE)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = esound.pc

EXTRA_DIST = \
	$(getopt_extra)	\
	esddsp		\
	esound.pc.in	\
	esound.spec	\
	esound.spec.in	\
	esd-config.in	\
        esd.conf        \
	esd.m4 		\
	TIPS 		\
	test-script 	\
	test.wav 	\
	getopt.h 	\
	TODO		\
	MAINTAINERS	\
	m4/as-arts.m4   \
	m4/as-compiler-flag.m4 \
	$(AUDIO_BACKENDS)