-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.old
93 lines (65 loc) · 2.04 KB
/
Makefile.old
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
all : dynagraph gengraph
#graphsearch/graphsearch
ROOT=.
include $(ROOT)/Config.mk
include $(ROOT)/makearch/$(ARCH)
SUBDIRS = common dynadag incrface pathplot shortspline graphsearch fdp shortspline voronoi
INCS = -I. \
-I.. -I../cdt \
$(GRAPHVIZ_INCS) \
-I$(BOOST_INC)
DEFINES = -DHAVE_CONFIG_H
BASELIBS = -Lcommon -ldynagraph \
-L$(GRAPHVIZ_LIB) \
-lcgraph -lpathplan -lcdt
GLIBS = -Lcommon -ldynagraph \
-L/usr/local/lib/graphviz \
-lcdt -lcgraph
OTHERLIBS = -Lincrface -lincrface \
-Ldynadag -ldynadag \
-Lpathplot -lpathplot \
-Lfdp -lfdp \
-Lshortspline -lshortspline \
-Lvoronoi -lvoronoi
GGLIBS = -Lcommon -ldynagraph \
-L$(GRAPHVIZ_LIB) \
-lcdt -lcgraph
OBJS = main.o IncrCalledBack.o DuplicateStream.o createConfiguration.o
MANS =
GET_VERSION = `./dynagraph --v3rs10n`
dynagraph : $(OBJS) libdynagraph.a libdynadag.a libincrface.a libpathplot.a libfdp.a libvoronoi.a libshortspline.a
$(CPPSLD) $(LDFLAGS) $(OBJS) $(OTHERLIBS) $(BASELIBS) $(THREADLIBS) -o dynagraph-wasm.js
# dynagraph: dynagraph-whole
# strip dynagraph-whole -o dynagraph
release: dynagraph
bzip2 -kc dynagraph > dynagraph-$(ARCH)-$(GET_VERSION).bz2
#*.o: *.h common/*.h incrface/*.h fdp/*.h dynadag/*.h voronoi/*.h shortspline/*.h pathplot/*.h
gengraph : gengraph.o libdynagraph.a
$(CPPSLD) $(LDFLAGS) gengraph.o $(GLIBS) $(THREADLIBS) -o gengraph
graphsearch/graphsearch :
(cd graphsearch; $(MAKE))
libdynagraph.a :
(cd common; $(MAKE))
libdynadag.a :
(cd dynadag; $(MAKE))
libincrface.a :
(cd incrface; $(MAKE))
libpathplot.a :
(cd pathplot; $(MAKE))
libfdp.a :
(cd fdp; $(MAKE))
libvoronoi.a :
(cd voronoi; $(MAKE))
libshortspline.a :
(cd shortspline; $(MAKE))
install: dynagraph gengraph
(for i in ${SUBDIRS}; do (cd $$i; $(MAKE) install); done)
$(MKPATH) $(BINDIR)
$(INSTALL) dynagraph $(BINDIR)
test:
(cd tests; $(MAKE) run)
distclean clean:
(for i in ${SUBDIRS}; do (cd $$i; $(MAKE) $@); done)
(cd tests; $(MAKE) clean)
$(RM) *.o core dynagraph gengraph
-include $(OBJS:%.o=$(DEPDIR)/%.P)