Source

hello / erlang / Makefile

MODULES=ringbench hello name_server \
server1 server2 geometry test_ets test_tcp \

ERLC=erlc #`which erlc`
.SUFFIXES: .beam .erl .yrl

all: compile

compile: #${MODULES:%=%.beam}
	erl -make -Wall

ERLFLAGS=-Wall
#don't do -smp in compiling if you want to use full smp

#.beam.erl:
.erl.beam:
	${ERLC} ${ERLFLAGS} $< -o $@

#hello.beam: hello.erl
###	erlc -W $<

.yrl.erl:
	erlc -W $<

clean: 
	-rm -rf *.beam
	-rm -rf erl_crash.dump