Makefile.am 1.41 KB
Newer Older
Jack Moffitt's avatar
Jack Moffitt committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Process this with automake to create Makefile.in

AUTOMAKE_OPTIONS = foreign

if HAVE_OSS

ossheaders = im_oss.h
osssources = im_oss.c

endif

if HAVE_SUN_AUDIO

sunheaders = im_sun.h
sunsources = im_sun.c

endif

19
20
21
22
23
24
25
if HAVE_ALSA

alsaheaders = im_alsa.h
alsasources = im_alsa.c

endif

Jack Moffitt's avatar
Jack Moffitt committed
26
27
28
29
SUBDIRS = avl thread net log timing

bin_PROGRAMS = ices

30
noinst_HEADERS = config.h input.h inputmodule.h im_playlist.h signals.h stream.h reencode.h encode.h playlist_basic.h logging.h im_stdinpcm.h $(ossheaders) $(sunheaders) $(alsaheaders) event.h stream_shared.h metadata.h audio.h resample.h
31
ices_SOURCES = input.c config.c stream.c ices.c signals.c im_playlist.c reencode.c encode.c playlist_basic.c im_stdinpcm.c $(osssources) $(sunsources) $(alsasources) stream_shared.c savefile.c metadata.c stream_rewrite.c playlist_script.c audio.c resample.c
Jack Moffitt's avatar
Jack Moffitt committed
32
33
34

ices_LDADD = net/libicenet.la thread/libicethread.la log/libicelog.la\
	avl/libiceavl.la timing/libicetiming.la
Jack Moffitt's avatar
Jack Moffitt committed
35

36
LIBS = @LIBS@ -lpthread @SOCKET_LIBS@ @XML_LIBS@ @OGG_LIBS@ @VORBIS_LIBS@\
37
       @VORBISENC_LIBS@ @SHOUT_LIBS@ @ALSA_LIBS@
Jack Moffitt's avatar
Jack Moffitt committed
38

39
40
CFLAGS = @CFLAGS@ @XML_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @SHOUT_CFLAGS@

41
INCLUDES = -Inet -Ithread -Iavl -Ilog -Itiming $(OSS_CFLAGS) $(SUN_CFLAGS) $(ALSA_CFLAGS)
Jack Moffitt's avatar
Jack Moffitt committed
42
43

debug:
Michael Smith's avatar
Michael Smith committed
44
	$(MAKE) all CFLAGS="@DEBUG@ @XML_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @SHOUT_CFLAGS@"
Jack Moffitt's avatar
Jack Moffitt committed
45
46

profile:
Michael Smith's avatar
Michael Smith committed
47
	$(MAKE) all CFLAGS="@PROFILE@ @XML_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @SHOUT_CFLAGS@"
Jack Moffitt's avatar
Jack Moffitt committed
48