sndio/sndiod/Makefile.in

77 lines
2.1 KiB
Makefile
Raw Normal View History

2012-09-02 17:13:30 -05:00
# extra includes paths (-I options)
INCLUDE = -I../libsndio -I../bsd-compat
# extra libraries paths (-L options)
LIB = -L../libsndio
# extra defines (-D options)
2012-10-29 08:20:45 -05:00
DEFS = -DDEBUG -DSNDIO_USER=\"@user@\" -DADATA_BITS=@precision@ @defs@
2012-09-02 17:13:30 -05:00
# extra libraries (-l options)
LDADD = -lsndio @ldadd@
# variables defined on configure script command line (if any)
@vars@
#
# binaries, documentation, man pages and examples will be installed in
# ${BIN_DIR}, ${MAN1_DIR}
#
BIN_DIR = @bindir@
MAN1_DIR = @mandir@/man1
#
# programs to build
#
PROG = sndiod
MAN1 = sndiod.1
all: ${PROG} ${MAN1}
install:
mkdir -p ${DESTDIR}${BIN_DIR} ${DESTDIR}${MAN1_DIR}
2012-10-08 16:19:03 -05:00
rm -f ${DESTDIR}${BIN_DIR}/${PROG} ${DESTDIR}${MAN1_DIR}/${MAN1}
2012-09-02 17:13:30 -05:00
cp ${PROG} ${DESTDIR}${BIN_DIR}
cp ${MAN1} ${DESTDIR}${MAN1_DIR}
uninstall:
cd ${DESTDIR}${BIN_DIR} && rm -f ${PROG}
cd ${DESTDIR}${MAN1_DIR} && rm -f ${MAN1}
clean:
rm -f -- *.o ${PROG}
# ---------------------------------------------------------- dependencies ---
OBJS = \
2012-09-03 06:20:41 -05:00
abuf.o utils.o dev.o dsp.o file.o listen.o midi.o miofile.o opt.o \
2012-09-02 17:13:30 -05:00
siofile.o sndiod.o sock.o
sndiod: ${OBJS}
${CC} ${LDFLAGS} ${LIB} -o sndiod ${OBJS} ${LDADD}
.c.o:
${CC} ${CFLAGS} ${INCLUDE} ${DEFS} -c $<
2012-12-07 02:00:45 -06:00
abuf.o: abuf.c abuf.h utils.h
dev.o: dev.c ../bsd-compat/bsd-compat.h abuf.h defs.h dev.h \
2013-01-05 16:21:36 -06:00
dsp.h siofile.h file.h midi.h miofile.h opt.h sysex.h \
utils.h
2012-12-07 02:00:45 -06:00
dsp.o: dsp.c dsp.h defs.h utils.h
2012-12-06 08:35:17 -06:00
file.o: file.c file.h utils.h
2012-09-02 17:13:30 -05:00
listen.o: listen.c listen.h file.h sock.h ../libsndio/amsg.h \
utils.h ../bsd-compat/bsd-compat.h
2012-11-02 06:43:43 -05:00
midi.o: midi.c abuf.h defs.h dev.h dsp.h siofile.h file.h midi.h \
miofile.h sysex.h utils.h ../bsd-compat/bsd-compat.h
2012-09-02 17:13:30 -05:00
miofile.o: miofile.c defs.h file.h midi.h abuf.h miofile.h utils.h
2013-01-05 16:21:36 -06:00
opt.o: opt.c dev.h abuf.h dsp.h defs.h siofile.h file.h opt.h \
utils.h
2012-11-02 06:43:43 -05:00
siofile.o: siofile.c abuf.h defs.h dev.h dsp.h siofile.h file.h \
2012-09-03 06:20:41 -05:00
utils.h
sndiod.o: sndiod.c ../libsndio/amsg.h defs.h dev.h abuf.h dsp.h \
2012-11-02 09:58:34 -05:00
siofile.h file.h listen.h midi.h miofile.h opt.h sock.h \
utils.h ../bsd-compat/bsd-compat.h
2012-11-02 06:43:43 -05:00
sock.o: sock.c abuf.h defs.h dev.h dsp.h siofile.h file.h midi.h \
2012-11-02 09:58:34 -05:00
miofile.h opt.h sock.h ../libsndio/amsg.h utils.h
2012-09-02 17:13:30 -05:00
utils.o: utils.c utils.h