Permalink
Newer
Older
100644 108 lines (77 sloc) 1.75 KB
Feb 11, 2002
1
###-*-makefile-*- ; force emacs to enter makefile-mode
2
""
May 4, 2003
3
4
PREFIX = @prefix@
5
prefix = ${PREFIX}
6
ETCDIR = @sysconfdir@
7
VARDIR = @localstatedir@
8
9
DVILATEX = @DVILATEX@
10
PDFLATEX = @PDFLATEX@
11
DVIPS = @DVIPS@
12
EPSTOPDF = @EPSTOPDF@
13
14
COND_DVILATEX = @COND_DVILATEX@
15
COND_PDFLATEX = @COND_PDFLATEX@
16
17
ERL="@ERL@"
18
WERL="@WERL@"
19
ERLC="@ERLC@"
21
DEFAULT_CHARSET=@DEFAULT_CHARSET@
22
EPAM = @EPAM@
23
EXTRAINCLUDE = @EXTRAINCLUDE@
24
ERLBINDIR = @ERLBINDIR@
25
HAVE_SENDFILE = @HAVE_SENDFILE@
26
27
ifdef debug
28
ERLC_FLAGS+=-Ddebug
29
endif
30
31
ifdef trace
32
ERLC_FLAGS=+trace
33
endif
34
35
ifdef export_all
36
ERLC_FLAGS+=-Dexport_all
37
endif
38
39
ifdef debug_info
40
ERLC_FLAGS+=+debug_info
41
endif
42
43
CC=@CC@
44
CFLAGS=@CFLAGS@
45
LINKER=@LINKER@
46
LDFLAGS=@LDFLAGS@
47
WIN32=@WIN32@
48
BSDI=@BSDI@
49
EXE=@EXE@
50
DLL=@DLL@
51
OBJ=@OBJ@
52
OUT=@OUT@
53
FPIC=@FPIC@
54
LIBS=@LIBS@
55
56
ERTS_VSN=@ERTS_VSN@
57
KERNEL_VSN=@KERNEL_VSN@
58
STDLIB_VSN=@STDLIB_VSN@
59
SASL_VSN=@SASL_VSN@
60
MNESIA_VSN=@MNESIA_VSN@
Feb 18, 2010
61
SSL_VSN=@SSL_VSN@
63
ERTS_MAJOR=@ERTS_MAJOR@
64
ERTS_MINOR=@ERTS_MINOR@
65
66
ERLDIR=@ERLDIR@
67
68
LD_SHARED=@LD_SHARED@
69
70
INSTALL=@INSTALL@
71
INSTALL_DATA=@INSTALL_DATA@
Feb 11, 2002
72
73
74
75
EMULATOR=beam
76
ifdef debug
77
ERLC_FLAGS+=-Ddebug
78
endif
79
80
ifdef trace
81
ERLC_FLAGS=+trace
82
endif
83
84
ifdef export_all
85
ERLC_FLAGS+=-Dexport_all
86
endif
87
88
89
# Hmm, don't know if you are supposed to like this better... ;-)
90
APPSCRIPT = '$$vsn=shift; $$mods=""; while(@ARGV){ $$_=shift; s/^([A-Z].*)$$/\'\''$$1\'\''/; $$mods.=", " if $$mods; $$mods .= $$_; } while(<>) { s/%VSN%/$$vsn/; s/%MODULES%/$$mods/; print; }'
91
92
# Targets
93
94
../ebin/%.app: %.app.src ../vsn.mk Makefile
95
perl -e $(APPSCRIPT) "$(VSN)" $(MODULES) < $< > $@
Feb 11, 2002
96
97
../ebin/%.appup: %.appup
Feb 11, 2002
99
100
../ebin/%.$(EMULATOR): %.erl
101
$(ERLC) $(ERLC_FLAGS) -o ../ebin $<
Feb 11, 2002
102
103
%.$(EMULATOR): %.erl
104
$(ERLC) $(ERLC_FLAGS) $<
Feb 11, 2002
105
106
107