Christopher Piro | 0d5cd8a | 2007-11-15 02:20:59 +0000 | [diff] [blame] | 1 | EBIN ?= ../ebin |
| 2 | ESRC ?= . |
| 3 | EMULATOR = beam |
Christopher Piro | 094823a | 2007-07-18 00:26:12 +0000 | [diff] [blame] | 4 | |
| 5 | ERLC_WFLAGS = -W |
| 6 | ERLC = erlc $(ERLC_WFLAGS) $(ERLC_FLAGS) |
| 7 | ERL = erl -boot start_clean |
Christopher Piro | 094823a | 2007-07-18 00:26:12 +0000 | [diff] [blame] | 8 | |
| 9 | $(EBIN)/%.beam: $(ESRC)/%.erl |
Christopher Piro | 0d5cd8a | 2007-11-15 02:20:59 +0000 | [diff] [blame] | 10 | @echo " ERLC $<" |
| 11 | @$(ERLC) $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $< |
Christopher Piro | 094823a | 2007-07-18 00:26:12 +0000 | [diff] [blame] | 12 | |
| 13 | .erl.beam: |
| 14 | $(ERLC) $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(dir $@) $< |
| 15 | |