File: Makefile

package info (click to toggle)
erlang-cl 1.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 704 kB
  • sloc: ansic: 6,712; erlang: 3,637; lisp: 490; makefile: 191
file content (44 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (3)
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

MODULES = \
	cl_basic \
	cl_square_float \
	cl_map \
	cl_binary_test \
	cl_bandwidth \
	cl_mul \
	cl_test \
	cl_buffer \
	cl_image \
	cl_compile


EBIN = .
ERLC = erlc

override ERLC_FLAGS = -W -pa ../../cl/ebin

OBJS = $(MODULES:%=$(EBIN)/%.beam)

TARGET_FILES = $(OBJS)

debug: ERLC_FLAGS += -Ddebug 

all: $(TARGET_FILES)

debug: all

release: all

depend:
	edep -MM -o . $(ERLC_FLAGS) $(MODULES:%=%.erl) > depend.mk

dialyze:
	dialyzer --src -o dia.out $(ERLC_FLAGS) -c $(MODULES:%=%.erl) 

clean:
	rm -f $(OBJS)

-include depend.mk

$(EBIN)/%.beam:	%.erl
	$(ERLC) $(ERLC_FLAGS) -o $(EBIN) $<