mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
54 lines
1.0 KiB
Makefile
54 lines
1.0 KiB
Makefile
# extra includes paths (-I options)
|
|
INCLUDE = -I../libsndio -I../bsd-compat
|
|
|
|
# extra libraries paths (-L options)
|
|
LIB = -L../libsndio
|
|
|
|
# extra defines (-D options)
|
|
DEFS = -DDEBUG @defs@
|
|
|
|
# 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 = sndioctl
|
|
MAN1 = sndioctl.1
|
|
|
|
all: ${PROG} ${MAN1}
|
|
|
|
install:
|
|
mkdir -p ${DESTDIR}${BIN_DIR} ${DESTDIR}${MAN1_DIR}
|
|
cp sndioctl ${DESTDIR}${BIN_DIR}
|
|
cp sndioctl.1 ${DESTDIR}${MAN1_DIR}
|
|
|
|
uninstall:
|
|
cd ${DESTDIR}${BIN_DIR} && rm -f ${PROG}
|
|
cd ${DESTDIR}${MAN1_DIR} && rm -f ${MAN1}
|
|
|
|
clean:
|
|
rm -f -- *.o sndioctl
|
|
|
|
# ---------------------------------------------------------- dependencies ---
|
|
|
|
OBJS = sndioctl.o
|
|
|
|
sndioctl: ${OBJS}
|
|
${CC} ${LDFLAGS} ${LIB} -o sndioctl ${OBJS} ${LDADD}
|
|
|
|
.c.o:
|
|
${CC} ${CFLAGS} ${INCLUDE} ${DEFS} -c $<
|
|
|
|
sndioctl.o: sndioctl.c sysex.h
|