blob: 65513a17295b5f520ebf858823109489255f33ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
RM=rm -f
CP=cp
EBIN=ebin
ERLC=erlc
# Works if building in open source source tree
KERNEL_INCLUDE=$(ERL_TOP)/lib/kernel/include
ERLCFLAGS+= -W -I$(KERNEL_INCLUDE)
MODULES=gen_tcp_dist
TARGET_FILES=$(MODULES:%=$(EBIN)/%.beam)
opt: $(TARGET_FILES)
$(EBIN)/%.beam: src/%.erl
$(ERLC) $(ERLCFLAGS) -o$(EBIN) $<
clean:
$(RM) $(TARGET_FILES)
|