Skip to content
Newer
Older
100644 109 lines (81 sloc) 1.92 KB
21abc5b @klacke Initial revision
klacke authored
1 ###-*-makefile-*- ; force emacs to enter makefile-mode
2
3a3459c @klacke ""
klacke authored
3
4 PREFIX = @prefix@
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
klacke authored
5 prefix = ${PREFIX}
c9778e0 @klacke added support for 2 additional configure
klacke authored
6 ETCDIR = @sysconfdir@
7 VARDIR = @localstatedir@
8
6c7d7a4 @klacke configure/latex support and also slightly nicer listdir output by Han…
klacke authored
9 DVILATEX = @DVILATEX@
10 PDFLATEX = @PDFLATEX@
11 DVIPS = @DVIPS@
12 EPSTOPDF = @EPSTOPDF@
13
14 COND_DVILATEX = @COND_DVILATEX@
15 COND_PDFLATEX = @COND_PDFLATEX@
16
da61d09 @klacke cygwin install patch by Bill Robertsson
klacke authored
17 ERL="@ERL@"
18 WERL="@WERL@"
19 ERLC="@ERLC@"
0c9da97 @klacke added ability to run as different user than root
klacke authored
20 EMULATOR=beam
177f03b @klacke addded configure option -with-defaultcharset
klacke authored
21 DEFAULT_CHARSET=@DEFAULT_CHARSET@
c9778e0 @klacke added support for 2 additional configure
klacke authored
22 EPAM = @EPAM@
23 EXTRAINCLUDE = @EXTRAINCLUDE@
87a5ac5 @klacke *** empty log message ***
klacke authored
24 ERLBINDIR = @ERLBINDIR@
12471ad @klacke added configure support for sendfile
klacke authored
25 HAVE_SENDFILE = @HAVE_SENDFILE@
35a5c1a @vinoski add configure detection of erts bits support
vinoski authored
26 BITS_SUPPORT = @BITS_SUPPORT@
0c9da97 @klacke added ability to run as different user than root
klacke authored
27
28 ifdef debug
29 ERLC_FLAGS+=-Ddebug
30 endif
31
32 ifdef trace
33 ERLC_FLAGS=+trace
34 endif
35
36 ifdef export_all
37 ERLC_FLAGS+=-Dexport_all
38 endif
39
b707418 @mremond Added compile option to generate debug information in the Erlang beam
mremond authored
40 ifdef debug_info
41 ERLC_FLAGS+=+debug_info
42 endif
43
0c9da97 @klacke added ability to run as different user than root
klacke authored
44 CC=@CC@
45 CFLAGS=@CFLAGS@
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
46 ifeq ($(HAVE_SENDFILE),true)
47 CFLAGS += -DHAVE_SENDFILE
48 endif
0c9da97 @klacke added ability to run as different user than root
klacke authored
49 LINKER=@LINKER@
50 LDFLAGS=@LDFLAGS@
51 WIN32=@WIN32@
52 BSDI=@BSDI@
53 EXE=@EXE@
54 DLL=@DLL@
55 OBJ=@OBJ@
56 OUT=@OUT@
57 FPIC=@FPIC@
58 LIBS=@LIBS@
59
2ae9701 @klacke Added a 'make release' target in the top makefile. he release
klacke authored
60 ERTS_VSN=@ERTS_VSN@
61 KERNEL_VSN=@KERNEL_VSN@
62 STDLIB_VSN=@STDLIB_VSN@
63 SASL_VSN=@SASL_VSN@
64 MNESIA_VSN=@MNESIA_VSN@
b45c0a4 @klacke dialyzer work
klacke authored
65 SSL_VSN=@SSL_VSN@
0c9da97 @klacke added ability to run as different user than root
klacke authored
66
f5eb9d5 @klacke conditional compile of websockets
klacke authored
67 ERTS_MAJOR=@ERTS_MAJOR@
68 ERTS_MINOR=@ERTS_MINOR@
0c9da97 @klacke added ability to run as different user than root
klacke authored
69
70 ERLDIR=@ERLDIR@
71
72 LD_SHARED=@LD_SHARED@
73
74 INSTALL=@INSTALL@
75 INSTALL_DATA=@INSTALL_DATA@
21abc5b @klacke Initial revision
klacke authored
76
77
78
79 EMULATOR=beam
80 ifdef debug
81 ERLC_FLAGS+=-Ddebug
82 endif
83
84 ifdef trace
85 ERLC_FLAGS=+trace
86 endif
87
88 ifdef export_all
89 ERLC_FLAGS+=-Dexport_all
90 endif
91
92
93 # Hmm, don't know if you are supposed to like this better... ;-)
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
94 APPSCRIPT = '$$vsn=shift; $$mods=""; while(@ARGV){ $$_=shift; s/^([A-Z].*)$$/\'\''$$1\'\''/; $$mods.=", " if $$mods; $$mods .= $$_; } while(<>) { s/\{vsn, git\}/\{vsn, $$vsn\}/; s/\{modules,\[\]\}/\{modules,\[$$mods\]\}/; print; }'
21abc5b @klacke Initial revision
klacke authored
95
96 # Targets
97
98 ../ebin/%.app: %.app.src ../vsn.mk Makefile
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
klacke authored
99 perl -e $(APPSCRIPT) "$(VSN)" $(MODULES) < $< > $@
21abc5b @klacke Initial revision
klacke authored
100
bc1a16b @capflam add yaws.appup.src template file (capflam)
authored
101 ../ebin/%.appup: %.appup.src ../vsn.mk Makefile
102 sed -e "s/%VSN%/$(VSN)/g" < $< > $@
21abc5b @klacke Initial revision
klacke authored
103
104 ../ebin/%.$(EMULATOR): %.erl
8054c71 @klacke cygwin build patch by Davide marques
klacke authored
105 $(ERLC) $(ERLC_FLAGS) -o ../ebin $<
21abc5b @klacke Initial revision
klacke authored
106
107 %.$(EMULATOR): %.erl
8054c71 @klacke cygwin build patch by Davide marques
klacke authored
108 $(ERLC) $(ERLC_FLAGS) $<
Something went wrong with that request. Please try again.