# to find clipper.pc, you will need to do something like # export PKG_CONFIG_PATH=$COOT_DIR/lib/pkgconfig COOT_DIR=$(HOME)/freshcoot/experimental_systemlibsbuild/prefix2 CXXFLAGS= \ -I$(COOT_DIR)/include \ -I$(COOT_DIR)/include/coot \ -I/usr/include/rdkit \ -I/usr/include/python3.11 \ -DUSE_PYTHON \ -DUSE_LIBCURL \ -DVERSION="\"dummyVERSION\"" \ `pkg-config --cflags gtk4` \ -ggdb -O2 -march=native -std=c++17 # `pkg-config --cflags epoxy` # `pkg-config --cflags clipper` LDLIBS=-fuse-ld=mold \ -L$(COOT_DIR)/lib \ `pkg-config --libs gtk4` \ -g \ -Wl,--export-dynamic,--rpath=$(COOT_DIR)/lib \ -lfreetype -lm -ldl \ -lcoot-geometry -lcoot-lidia-core -lcoot-utils \ -lRDKitDepictor -lRDKitSmilesParse -lRDKitMolDraw2D -lRDKitGraphMol -lRDKitRDGeneral -lRDKitFileParsers -lRDKitSubstructMatch \ -lboost_iostreams -lboost_serialization -lboost_python311 -lpython3.11 -lcurl # -lcoot-ligand -lcoot-ideal -lcoot-coords -lcoot-map-utils -lcoot-coord-utils -lcoot-geometry -lmmdb2 #`pkg-config --libs epoxy` #`pkg-config --libs clipper` HEADERS = \ state.hpp \ ui.hpp \ utils.hpp \ notifier.hpp \ generators.hpp \ ligand_editor_canvas/model.hpp \ ligand_editor_canvas/core.hpp \ ligand_editor_canvas/tools.hpp \ ligand_editor_canvas/render.hpp \ ligand_editor_canvas.hpp \ layla_embedded.hpp \ python_utils.hpp \ SOURCES = \ state.cpp \ signals.cpp \ ui.cpp \ utils.cpp \ notifier.cpp \ generators.cpp \ ligand_editor_canvas/model.cpp \ ligand_editor_canvas/core.cpp \ ligand_editor_canvas/tools.cpp \ ligand_editor_canvas/render.cpp \ ligand_editor_canvas.cpp \ layla_embedded.cpp \ python_utils.cpp \ main.cpp OBJS := $(patsubst %.cpp,%.o,$(SOURCES)) %.o: %.cc $(HEADERS) $(CXX) $(CXXFLAGS) -c $< -o $@ layla: $(OBJS) $(HEADERS) $(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LDLIBS)