<commit_before>include ../../../makefile.conf

OBJS = RTcmixMIDI.o RTMidiPField.o glue.o
SRCS = RTcmixMIDI.cpp RTMidiPField.cpp glue.cpp

PTLIB = portmidi/porttime/libporttime.a

ifeq ($(ARCH), MACOSX)
	PMLIB = portmidi/pm_mac/libportmidi.a
	MIDISYSLIB = -framework CoreFoundation -framework CoreAudio -framework CoreMIDI
endif
ifeq ($(ARCH), LINUX)
	PMLIB = portmidi/pm_linux/libportmidi.a
#	MIDISYSLIB = -lasound
endif

CXXFLAGS += -I. -I../../rtcmix -Iportmidi/pm_common -Iportmidi/porttime

LIBMIDI = libmidiconn.$(SHLIB_SUFFIX)

all: $(LIBMIDI)

$(LIBMIDI): depend $(OBJS) $(PMLIB)
	$(RM) $@
	$(CXX) $(DYNAMIC_LDFLAGS) -o $@ $(OBJS) $(PMLIB) $(PTLIB) $(MIDISYSLIB)

glue.o: depend glue.cpp RTMidiPField.h<commit_msg>Changed to create shared lib, not dylib<commit_after>include ../../../makefile.conf

OBJS = RTcmixMIDI.o RTMidiPField.o glue.o
SRCS = RTcmixMIDI.cpp RTMidiPField.cpp glue.cpp

PTLIB = portmidi/porttime/libporttime.a

ifeq ($(ARCH), MACOSX)
	PMLIB = portmidi/pm_mac/libportmidi.a
	MIDISYSLIB = -framework CoreFoundation -framework CoreAudio -framework CoreMIDI
endif
ifeq ($(ARCH), LINUX)
	PMLIB = portmidi/pm_linux/libportmidi.a
#	MIDISYSLIB = -lasound
endif

CXXFLAGS += -I. -I../../rtcmix -Iportmidi/pm_common -Iportmidi/porttime

LIBMIDI = libmidiconn.so

all: $(LIBMIDI)

$(LIBMIDI): depend $(OBJS) $(PMLIB)
	$(RM) $@
	$(CXX) $(SHARED_LDFLAGS) -o $@ $(OBJS) $(PMLIB) $(PTLIB) $(MIDISYSLIB)

glue.o: depend glue.cpp RTMidiPField.h
{'fraction_non_alphanumeric': 0.15818431911966988, 'fraction_numerical': 0.0, 'mean_word_length': 4.490566037735849, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7525867', 'n_tokens_mistral': 660, 'n_tokens_neox': 630, 'n_words': 121}