From 24014fd33fbc08250058558066b0ec5f7a83dbb1 Mon Sep 17 00:00:00 2001 From: qubitslabs Date: Sat, 31 May 2025 14:15:36 +0530 Subject: [PATCH] Add Windows-compatible Makefile for hdbscan-cpp --- Makefile.windows | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile.windows diff --git a/Makefile.windows b/Makefile.windows new file mode 100644 index 0000000..dcba146 --- /dev/null +++ b/Makefile.windows @@ -0,0 +1,17 @@ +CXX = g++ +SRCDIR = HDBSCAN-CPP +SOURCES = $(wildcard $(SRCDIR)/*/*.cpp) HDBSCAN-FourProminentClusterExample/FourProminentClusterExample.cpp +OBJECTS = $(SOURCES:.cpp=.o) +TARGET = hdbscan.exe +CXXFLAGS = -std=c++11 -Wall -I$(SRCDIR) + +all: $(TARGET) + +$(TARGET): $(OBJECTS) + $(CXX) $(OBJECTS) -o $(TARGET) $(CXXFLAGS) + +%.o: %.cpp + $(CXX) -c $< -o $@ $(CXXFLAGS) + +clean: + del /F /Q $(subst /,\,$(OBJECTS)) $(TARGET) 2>nul || exit 0 \ No newline at end of file