<commit_before># This builds and installs both PLACE and MOVE

include ../package.conf

CURDIR = $(CMIXDIR)/insts/std/MMOVE
MOVEDIR = $(CMIXDIR)/insts/std/MOVE
EXTERN_OBJS = $(MOVEDIR)/cmixfuns.o $(MOVEDIR)/common.o
EXTERN_HDRS = $(MOVEDIR)/cmixfuns.h $(MOVEDIR)/common.h $(INSTRUMENT_H)
COMMON_OBJS = MBASE.o RVB.o msetup.o
COMMON_HDRS = msetup.h $(EXTERN_HEADERS)
POBJS = MPLACE.o placeprof.o $(COMMON_OBJS) $(EXTERN_OBJS)
MOBJS = MMOVE.o moveprof.o path.o $(COMMON_OBJS) $(EXTERN_OBJS)
DOBJS = DMOVE.o moveprof.o path.o $(COMMON_OBJS) $(EXTERN_OBJS)
#PROF = -pg
PROF =
ifeq ($(ARCH),LINUX)
   CXXFLAGS += -funroll-loops $(PROF)
endif
CXXFLAGS += -I. -I$(MOVEDIR) $(MINE)
CFLAGS += -I. -I$(MOVEDIR) $(MINE)

PROGS = MPLACE libMPLACE.so MMOVE libMMOVE.so

.PHONY: all standalone install dso_install standalone_install \
uninstall dso_uninstall standalone_uninstall clean cleanall

all: libMPLACE.so libMMOVE.so

standalone: MPLACE MMOVE

$(EXTERN_OBJS):
	cd $(MOVEDIR); make

libMPLACE.so: $(POBJS) $(GENLIB)
	$(CXX) $(SHARED_LDFLAGS) -o $@ $(POBJS) $(GENLIB) $(SYSLIBS)

MPLACE: $(POBJS) $(CMIXOBJS)
	$(CXX) -o $@ $(POBJS) $(CMIXOBJS) $(LDFLAGS) $(PROF)

$(POBJS): $(COMMON_HDRS) MBASE.h MPLACE.h

libMMOVE.so: $(MOBJS) $(GENLIB)
	$(CXX) $(SHARED_LDFLAGS) -o $@ $(MOBJS) $(GENLIB) $(SYSLIBS)

MMOVE: $(MOBJS) $(CMIXOBJS)
	$(CXX) -o $@ $(MOBJS) $(CMIXOBJS) $(LDFLAGS) $(PROF)

$(MOBJS): $(COMMON_HDRS) MBASE.h MMOVE.h
<commit_msg>Added DMOVE targets<commit_after># This builds and installs both PLACE and MOVE

include ../package.conf

CURDIR = $(CMIXDIR)/insts/std/MMOVE
MOVEDIR = $(CMIXDIR)/insts/std/MOVE
EXTERN_OBJS = $(MOVEDIR)/cmixfuns.o $(MOVEDIR)/common.o
EXTERN_HDRS = $(MOVEDIR)/cmixfuns.h $(MOVEDIR)/common.h $(INSTRUMENT_H)
COMMON_OBJS = MBASE.o RVB.o msetup.o
COMMON_HDRS = msetup.h $(EXTERN_HEADERS)
POBJS = MPLACE.o placeprof.o $(COMMON_OBJS) $(EXTERN_OBJS)
MOBJS = MMOVE.o moveprof.o path.o $(COMMON_OBJS) $(EXTERN_OBJS)
DOBJS = DMOVE.o moveprof.o path.o $(COMMON_OBJS) $(EXTERN_OBJS)
#PROF = -pg
PROF =
ifeq ($(ARCH),LINUX)
   CXXFLAGS += -funroll-loops $(PROF)
endif
CXXFLAGS += -I. -I$(MOVEDIR) $(MINE)
CFLAGS += -I. -I$(MOVEDIR) $(MINE)

PROGS = MPLACE libMPLACE.so MMOVE libMMOVE.so

.PHONY: all standalone install dso_install standalone_install \
uninstall dso_uninstall standalone_uninstall clean cleanall

all: libMPLACE.so libMMOVE.so libDMOVE.so

standalone: MPLACE MMOVE DMOVE

$(EXTERN_OBJS):
	cd $(MOVEDIR); make

libMPLACE.so: $(POBJS) $(GENLIB)
	$(CXX) $(SHARED_LDFLAGS) -o $@ $(POBJS) $(GENLIB) $(SYSLIBS)

MPLACE: $(POBJS) $(CMIXOBJS)
	$(CXX) -o $@ $(POBJS) $(CMIXOBJS) $(LDFLAGS) $(PROF)

$(POBJS): $(COMMON_HDRS) MBASE.h MPLACE.h

libMMOVE.so: $(MOBJS) $(GENLIB)
	$(CXX) $(SHARED_LDFLAGS) -o $@ $(MOBJS) $(GENLIB) $(SYSLIBS)

MMOVE: $(MOBJS) $(CMIXOBJS)
	$(CXX) -o $@ $(MOBJS) $(CMIXOBJS) $(LDFLAGS) $(PROF)

$(MOBJS): $(COMMON_HDRS) MBASE.h MMOVE.h

{'fraction_non_alphanumeric': 0.18191268191268192, 'fraction_numerical': 0.0, 'mean_word_length': 5.2219827586206895, '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': '1274014', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1300, 'n_words': 270}