| 1 |
|
| 2 |
# to find clipper.pc, you will need to do something like |
| 3 |
# export PKG_CONFIG_PATH=$COOT_DIR/lib/pkgconfig |
| 4 |
|
| 5 |
COOT_DIR=$(HOME)/freshcoot/experimental_systemlibsbuild/prefix2 |
| 6 |
|
| 7 |
CXXFLAGS= \ |
| 8 |
-I$(COOT_DIR)/include \ |
| 9 |
-I$(COOT_DIR)/include/coot \ |
| 10 |
-I/usr/include/rdkit \ |
| 11 |
-I/usr/include/python3.11 \ |
| 12 |
-DUSE_PYTHON \ |
| 13 |
-DUSE_LIBCURL \ |
| 14 |
-DVERSION="\"dummyVERSION\"" \ |
| 15 |
`pkg-config --cflags gtk4` \ |
| 16 |
-ggdb -O2 -march=native -std=c++17 |
| 17 |
# `pkg-config --cflags epoxy` |
| 18 |
# `pkg-config --cflags clipper` |
| 19 |
|
| 20 |
LDLIBS=-fuse-ld=mold \ |
| 21 |
-L$(COOT_DIR)/lib \ |
| 22 |
`pkg-config --libs gtk4` \ |
| 23 |
-g \ |
| 24 |
-Wl,--export-dynamic,--rpath=$(COOT_DIR)/lib \ |
| 25 |
-lfreetype -lm -ldl \ |
| 26 |
-lcoot-geometry -lcoot-lidia-core -lcoot-utils \ |
| 27 |
-lRDKitDepictor -lRDKitSmilesParse -lRDKitMolDraw2D -lRDKitGraphMol -lRDKitRDGeneral -lRDKitFileParsers -lRDKitSubstructMatch \ |
| 28 |
-lboost_iostreams -lboost_serialization -lboost_python311 -lpython3.11 -lcurl |
| 29 |
|
| 30 |
# -lcoot-ligand -lcoot-ideal -lcoot-coords -lcoot-map-utils -lcoot-coord-utils -lcoot-geometry -lmmdb2 |
| 31 |
#`pkg-config --libs epoxy` |
| 32 |
#`pkg-config --libs clipper` |
| 33 |
|
| 34 |
HEADERS = \ |
| 35 |
state.hpp \ |
| 36 |
ui.hpp \ |
| 37 |
utils.hpp \ |
| 38 |
notifier.hpp \ |
| 39 |
generators.hpp \ |
| 40 |
ligand_editor_canvas/model.hpp \ |
| 41 |
ligand_editor_canvas/core.hpp \ |
| 42 |
ligand_editor_canvas/tools.hpp \ |
| 43 |
ligand_editor_canvas/render.hpp \ |
| 44 |
ligand_editor_canvas.hpp \ |
| 45 |
layla_embedded.hpp \ |
| 46 |
python_utils.hpp \ |
| 47 |
|
| 48 |
SOURCES = \ |
| 49 |
state.cpp \ |
| 50 |
signals.cpp \ |
| 51 |
ui.cpp \ |
| 52 |
utils.cpp \ |
| 53 |
notifier.cpp \ |
| 54 |
generators.cpp \ |
| 55 |
ligand_editor_canvas/model.cpp \ |
| 56 |
ligand_editor_canvas/core.cpp \ |
| 57 |
ligand_editor_canvas/tools.cpp \ |
| 58 |
ligand_editor_canvas/render.cpp \ |
| 59 |
ligand_editor_canvas.cpp \ |
| 60 |
layla_embedded.cpp \ |
| 61 |
python_utils.cpp \ |
| 62 |
main.cpp |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
OBJS := $(patsubst %.cpp,%.o,$(SOURCES)) |
| 67 |
|
| 68 |
%.o: %.cc $(HEADERS) |
| 69 |
$(CXX) $(CXXFLAGS) -c $< -o $@ |
| 70 |
|
| 71 |
layla: $(OBJS) $(HEADERS) |
| 72 |
$(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LDLIBS) |