Makefile.am 1.31 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
SUBDIRS = avl thread net log timing

bin_PROGRAMS = ices
29
AM_CFLAGS = @XIPH_CFLAGS@
Jack Moffitt's avatar
Jack Moffitt committed
30

31
noinst_HEADERS = cfgparse.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
32
ices_SOURCES = input.c cfgparse.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 metadata.c playlist_script.c audio.c resample.c
Jack Moffitt's avatar
Jack Moffitt committed
33
34

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

37
38
## LIBS = @LIBS@ @SOCKET_LIBS@ @XML_LIBS@ @OGG_LIBS@ @VORBIS_LIBS@\
##       @VORBISENC_LIBS@ @SHOUT_LIBS@ @ALSA_LIBS@
Jack Moffitt's avatar
Jack Moffitt committed
39

40
## CFLAGS = @CFLAGS@ @XML_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @SHOUT_CFLAGS@
41

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

debug:
45
	$(MAKE) all CFLAGS="@DEBUG@"
Jack Moffitt's avatar
Jack Moffitt committed
46
47

profile:
48
	$(MAKE) all CFLAGS="@PROFILE@"
Jack Moffitt's avatar
Jack Moffitt committed
49