Makefile
858 Bytes
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
#
# Makefile for multigen database conversion tools
#
include $(WORKAREA)/PR/PRdefs
C++FILES = \
midifile.c++ \
list.c++
OPTIMIZER = -g
TARGETS=midicvt midiprint midistat midicomp
LCOPTS =-fullwarn
LLDLIBS= -lm
MIDICOMPINCS = -I $(ROOT)/usr/include/PR
default: $(TARGETS)
include $(COMMONRULES)
midicvt: ${OBJECTS} midicvt.o
$(C++F) midicvt.o ${OBJECTS} $(LDFLAGS) -o $@
midicomp.o: midicomp.c++ midicomp.h
$(C++F) $(MIDICOMPINCS) -c midicomp.c++
midicomp: ${OBJECTS} midicomp.o
$(C++F) midicomp.o ${OBJECTS} $(LDFLAGS) -o $@
midiprint: ${OBJECTS} midiprint.o
$(C++F) midiprint.o ${OBJECTS} $(LDFLAGS) -o $@
midistat: ${OBJECTS} midistat.o
$(C++F) midistat.o ${OBJECTS} $(LDFLAGS) -o $@
midirand: ${OBJECTS} midirand.o
$(C++F) midirand.o ${OBJECTS} $(LDFLAGS) -o $@
install exports: default
$(INSTALL) -F /usr/sbin $(TARGETS)