-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
70 lines (56 loc) · 2.23 KB
/
makefile
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
#######################################################################
# Template of for compiling erlang files #
# The environment variable $TOOLSHOME home has to be set to where #
# the generic make script is installed (erlang). #
#######################################################################
# code to compile
SOURCE = _common/caffe_util.erl \
_common/ezpr.erl \
_common/cyclic_queue.erl \
_common/caffe_graph.erl \
_common/caffe.erl \
_system_plugins/graph_state.erl \
_system_plugins/messenger.erl \
_system_plugins/terminator.erl \
testutil/graph1.erl \
testutil/worker_random_messenger.erl \
testutil/worker_scripted_event.erl \
test/test_lamport_clock.erl \
test/test_chandy_lamport.erl \
test/test_lai_yang.erl \
chapter2/lamport_clock.erl \
chapter2/vector_clock.erl \
chapter3/chandy_lamport.erl \
chapter3/lai_yang.erl
#Where include files are stored ".hrl"
EFLAGS = -I _common \
-I _system_plugins \
-I chapter2
#######################################################################
# Generic make script for compiling erlang code #
# The environment variable $ERLHOME has to be set to where erlang/OTP #
# is installed #
# Compiles the code into a ebin dir. relative to the source dir. #
# (../ebin) #
#######################################################################
#Compiles the code into out dir. relative to the source dir.
ERLHOME = /usr/local
EBIN = ../out
ERL = erl
GEN = beam
ERLC_EMULATOR = erl -boot start_clean
PATH= .:$(ERLHOME)/bin:/bin:/usr/bin:/usr/local/bin
TARGETS = $(SOURCE:%.erl=$(EBIN)/%.beam)
CODE = $(SOURCE:%.erl=$(EBIN)/%.beam)
$(EBIN)/%.beam: %.erl
$(ERLHOME)/bin/erlc -W -b beam -o $(EBIN) $(EFLAGS) $(WAIT) $<
all: $(TARGETS)
clean:
\rm -f $(CODE)
realclean: clean
\rm -f \.* *~ *\% #* *.beam
#######################################################################
# Do not edit below this line #
#######################################################################
#Include following generic make script
#include $(TOOLSHOME)/erlang