David Reiss | 77f6f7f | 2008-06-11 00:57:11 +0000 | [diff] [blame] | 1 | EBIN ?= ../ebin |
2 | ESRC ?= . | ||||
3 | EMULATOR = beam | ||||
4 | |||||
5 | ERLC_WFLAGS = -W | ||||
6 | ERLC = erlc $(ERLC_WFLAGS) $(ERLC_FLAGS) | ||||
7 | ERL = erl -boot start_clean | ||||
8 | |||||
9 | $(EBIN)/%.beam: $(ESRC)/%.erl | ||||
10 | @echo " ERLC $<" | ||||
11 | @$(ERLC) $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $< | ||||
12 | |||||
13 | .erl.beam: | ||||
14 | $(ERLC) $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(dir $@) $< | ||||
15 |