-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 664 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (22 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Name of model/process
NAME = Root
MODELPATH = "Root"
SOLIB = usrLib$(NAME).so
# List all object files here
OBJECTS = $(NAME).o PBD.o tissue.o
# default target
target: $(SOLIB)
# Call MorphoDynamX to get makefile
include $(shell mdx --resource)/MDXProcess.mk
# Add extra compile flags here
CXXFLAGS += -Wno-deprecated-copy -Wno-unused-local-typedefs -Wno-unused-parameter $(EXTRA) $(INC)
# Add extra libraries here
#LIBS+=Root.cu.o -lcudart
# Add extra link flags here
LD_FLAGS+= $(EXTRA)
# Model dependencies
$(NAME).o: $(NAME).cpp $(NAME).hpp Makefile
$(SOLIB): $(OBJECTS)
# Run the model
run: target
mdx --model $(MODELPATH) --addlibrary $(SOLIB)