Makefile 858 Bytes
#
# 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)