File: Makefile.in

package info (click to toggle)
midish 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,344 kB
  • sloc: ansic: 22,502; sh: 268; makefile: 119
file content (129 lines) | stat: -rw-r--r-- 4,869 bytes parent folder | download
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
#
# extra -l options for respective libraries
#
RT_LDADD = @rt_ldadd@
ALSA_LDADD = @alsa_ldadd@
SNDIO_LDADD = @sndio_ldadd@

#
# extra -I, -L, and -D options
#
INCLUDE = @include@
LIB = @lib@
DEFS = @defs@
@vars@

#
# binaries, documentation, man pages and examples will be installed in 
# ${BIN_DIR}, ${MAN1_DIR}, ${DOC_DIR} and ${EXAMPLES_DIR}
#
BIN_DIR = @bindir@
MAN1_DIR = @mandir@/man1
DOC_DIR = @datadir@/doc/midish
EXAMPLES_DIR = @datadir@/examples/midish

all:		midish

install:	midish
		mkdir -p ${DESTDIR}${BIN_DIR} ${DESTDIR}${MAN1_DIR} \
		    ${DESTDIR}${DOC_DIR} ${DESTDIR}${EXAMPLES_DIR}
		cp midish smfplay smfrec ${DESTDIR}${BIN_DIR}
		cp midish.1 smfplay.1 smfrec.1 ${DESTDIR}${MAN1_DIR}
		cp README manual.html ${DESTDIR}${DOC_DIR}
		cp midishrc sample.msh ${DESTDIR}${EXAMPLES_DIR}

uninstall:
		cd ${DESTDIR}${BIN_DIR} && rm -f midish smfplay smfrec
		cd ${DESTDIR}${MAN1_DIR} && rm -f midish.1 smfplay.1 smfrec.1
		cd ${DESTDIR}${DOC_DIR} && rm -f README manual.html
		cd ${DESTDIR}${EXAMPLES_DIR} && rm -f midishrc sample.msh

check:		midish
		@cd regress && ./run-test *.cmd

clean:
		rm -f -- midish ${OBJS}
		cd regress && rm -f -- *.tmp1 *.tmp2 *.log *.diff

distclean:	clean
		rm -f -- Makefile

# ---------------------------------------------------------- dependencies ---

OBJS = \
builtin.o cons.o conv.o data.o ev.o exec.o filt.o frame.o help.o \
main.o mdep.o mdep_raw.o mdep_alsa.o mdep_sndio.o metro.o mididev.o \
mixout.o mux.o name.o node.o norm.o parse.o pool.o saveload.o smf.o song.o \
state.o str.o sysex.o textio.o timo.o track.o tty.o undo.o user.o utils.o

midish:		${OBJS}
		${CC} ${LDFLAGS} ${LIB} -o midish ${OBJS} \
		${RT_LDADD} ${ALSA_LDADD} ${SNDIO_LDADD}

.c.o:
		${CC} ${CFLAGS} ${INCLUDE} ${DEFS} -c $<

builtin.o:	builtin.c utils.h defs.h node.h exec.h name.h str.h \
		data.h cons.h tty.h frame.h state.h ev.h help.h song.h \
		track.h filt.h sysex.h metro.h timo.h user.h smf.h \
		saveload.h textio.h mux.h mididev.h norm.h builtin.h \
		version.h undo.h
cons.o:		cons.c utils.h textio.h cons.h tty.h user.h
conv.o:		conv.c utils.h state.h ev.h defs.h conv.h
data.o:		data.c utils.h str.h cons.h tty.h data.h
ev.o:		ev.c utils.h ev.h defs.h str.h cons.h tty.h
exec.o:		exec.c utils.h exec.h name.h str.h data.h node.h cons.h \
		tty.h
filt.o:		filt.c utils.h ev.h defs.h filt.h pool.h mux.h cons.h \
		tty.h
frame.o:	frame.c utils.h track.h ev.h defs.h filt.h frame.h \
		state.h pool.h
help.o:		help.c help.h
main.o:		main.c utils.h str.h cons.h tty.h ev.h defs.h mux.h \
		track.h frame.h state.h song.h name.h filt.h sysex.h \
		metro.h timo.h user.h mididev.h textio.h
mdep.o:		mdep.c defs.h mux.h mididev.h cons.h tty.h user.h exec.h \
		name.h str.h utils.h
mdep_alsa.o:	mdep_alsa.c utils.h mididev.h str.h
mdep_raw.o:	mdep_raw.c utils.h cons.h tty.h mididev.h str.h
mdep_sndio.o:	mdep_sndio.c utils.h cons.h tty.h mididev.h str.h
metro.o:	metro.c utils.h mux.h metro.h ev.h defs.h timo.h song.h \
		name.h str.h track.h frame.h state.h filt.h sysex.h
mididev.o:	mididev.c utils.h defs.h mididev.h pool.h cons.h tty.h \
		str.h ev.h sysex.h mux.h timo.h conv.h
mixout.o:	mixout.c utils.h ev.h defs.h filt.h pool.h mux.h timo.h \
		state.h
mux.o:		mux.c utils.h ev.h defs.h cons.h tty.h mux.h mididev.h \
		sysex.h timo.h state.h conv.h norm.h mixout.h
name.o:		name.c utils.h name.h str.h
node.o:		node.c utils.h str.h data.h node.h exec.h name.h cons.h \
		tty.h user.h textio.h
norm.o:		norm.c utils.h ev.h defs.h norm.h pool.h mux.h filt.h \
		mixout.h state.h timo.h
parse.o:	parse.c data.h parse.h node.h utils.h exec.h name.h \
		str.h cons.h tty.h
pool.o:		pool.c utils.h pool.h
saveload.o:	saveload.c utils.h name.h str.h mididev.h song.h track.h ev.h \
		defs.h frame.h state.h filt.h sysex.h metro.h timo.h \
		textio.h saveload.h conv.h version.h cons.h tty.h
smf.o:		smf.c utils.h mididev.h sysex.h track.h ev.h defs.h song.h name.h \
		str.h frame.h state.h filt.h metro.h timo.h smf.h cons.h \
		tty.h conv.h
song.o:		song.c utils.h mididev.h mux.h track.h ev.h defs.h \
		frame.h state.h filt.h song.h name.h str.h sysex.h \
		metro.h timo.h cons.h tty.h mixout.h norm.h undo.h
state.o:	state.c utils.h pool.h state.h ev.h defs.h
str.o:		str.c utils.h str.h
sysex.o:	sysex.c utils.h sysex.h defs.h pool.h
textio.o:	textio.c utils.h textio.h cons.h tty.h
timo.o:		timo.c utils.h timo.h
track.o:	track.c utils.h pool.h track.h ev.h defs.h
tty.o:		tty.c tty.h utils.h
undo.o:		undo.c utils.h mididev.h mux.h track.h ev.h defs.h \
		frame.h state.h filt.h song.h name.h str.h sysex.h \
		metro.h timo.h cons.h tty.h mixout.h norm.h undo.h
user.o:		user.c utils.h defs.h node.h exec.h name.h str.h data.h \
		cons.h tty.h textio.h parse.h mux.h mididev.h track.h \
		ev.h song.h frame.h state.h filt.h sysex.h metro.h \
		timo.h user.h builtin.h smf.h saveload.h
utils.o:	utils.c utils.h tty.h