Skip to content
Newer
Older
100644 107 lines (76 sloc) 1.74 KB
21abc5b @klacke Initial revision
authored
1 ###-*-makefile-*- ; force emacs to enter makefile-mode
2
3a3459c @klacke ""
authored
3
4 PREFIX = @prefix@
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
5 prefix = ${PREFIX}
c9778e0 @klacke added support for 2 additional configure
authored
6 ETCDIR = @sysconfdir@
7 VARDIR = @localstatedir@
8
6c7d7a4 @klacke configure/latex support and also slightly nicer listdir output by Han…
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
authored
17 ERL="@ERL@"
18 WERL="@WERL@"
19 ERLC="@ERLC@"
0c9da97 @klacke added ability to run as different user than root
authored
20 EMULATOR=beam
177f03b @klacke addded configure option -with-defaultcharset
authored
21 DEFAULT_CHARSET=@DEFAULT_CHARSET@
c9778e0 @klacke added support for 2 additional configure
authored
22 EPAM = @EPAM@
23 EXTRAINCLUDE = @EXTRAINCLUDE@
87a5ac5 @klacke *** empty log message ***
authored
24 ERLBINDIR = @ERLBINDIR@
12471ad @klacke added configure support for sendfile
authored
25 HAVE_SENDFILE = @HAVE_SENDFILE@
0c9da97 @klacke added ability to run as different user than root
authored
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
b707418 @mremond Added compile option to generate debug information in the Erlang beam
mremond authored
39 ifdef debug_info
40 ERLC_FLAGS+=+debug_info
41 endif
42
0c9da97 @klacke added ability to run as different user than root
authored
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
2ae9701 @klacke Added a 'make release' target in the top makefile. he release
authored
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@
0c9da97 @klacke added ability to run as different user than root
authored
61
f5eb9d5 @klacke conditional compile of websockets
authored
62 ERTS_MAJOR=@ERTS_MAJOR@
63 ERTS_MINOR=@ERTS_MINOR@
0c9da97 @klacke added ability to run as different user than root
authored
64
65 ERLDIR=@ERLDIR@
66
67 LD_SHARED=@LD_SHARED@
68
69 INSTALL=@INSTALL@
70 INSTALL_DATA=@INSTALL_DATA@
21abc5b @klacke Initial revision
authored
71
72
73
74 EMULATOR=beam
75 ifdef debug
76 ERLC_FLAGS+=-Ddebug
77 endif
78
79 ifdef trace
80 ERLC_FLAGS=+trace
81 endif
82
83 ifdef export_all
84 ERLC_FLAGS+=-Dexport_all
85 endif
86
87
88 # Hmm, don't know if you are supposed to like this better... ;-)
89 APPSCRIPT = '$$vsn=shift; $$mods=""; while(@ARGV){ $$_=shift; s/^([A-Z].*)$$/\'\''$$1\'\''/; $$mods.=", " if $$mods; $$mods .= $$_; } while(<>) { s/%VSN%/$$vsn/; s/%MODULES%/$$mods/; print; }'
90
91 # Targets
92
93 ../ebin/%.app: %.app.src ../vsn.mk Makefile
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored
94 perl -e $(APPSCRIPT) "$(VSN)" $(MODULES) < $< > $@
21abc5b @klacke Initial revision
authored
95
96 ../ebin/%.appup: %.appup
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored
97 cp $< $@
21abc5b @klacke Initial revision
authored
98
99 ../ebin/%.$(EMULATOR): %.erl
8054c71 @klacke cygwin build patch by Davide marques
authored
100 $(ERLC) $(ERLC_FLAGS) -o ../ebin $<
21abc5b @klacke Initial revision
authored
101
102 %.$(EMULATOR): %.erl
8054c71 @klacke cygwin build patch by Davide marques
authored
103 $(ERLC) $(ERLC_FLAGS) $<
21abc5b @klacke Initial revision
authored
104
105
106
Something went wrong with that request. Please try again.