Skip to content
Newer
Older
100644 92 lines (62 sloc) 1.41 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
da61d09 @klacke cygwin install patch by Bill Robertsson
authored
9 ERL="@ERL@"
10 WERL="@WERL@"
11 ERLC="@ERLC@"
0c9da97 @klacke added ability to run as different user than root
authored
12 EMULATOR=beam
177f03b @klacke addded configure option -with-defaultcharset
authored
13 DEFAULT_CHARSET=@DEFAULT_CHARSET@
c9778e0 @klacke added support for 2 additional configure
authored
14 EPAM = @EPAM@
15 EXTRAINCLUDE = @EXTRAINCLUDE@
87a5ac5 @klacke *** empty log message ***
authored
16 ERLBINDIR = @ERLBINDIR@
c9778e0 @klacke added support for 2 additional configure
authored
17
0c9da97 @klacke added ability to run as different user than root
authored
18
19 ifdef debug
20 ERLC_FLAGS+=-Ddebug
21 endif
22
23 ifdef trace
24 ERLC_FLAGS=+trace
25 endif
26
27 ifdef export_all
28 ERLC_FLAGS+=-Dexport_all
29 endif
30
b707418 @mremond Added compile option to generate debug information in the Erlang beam
mremond authored
31 ifdef debug_info
32 ERLC_FLAGS+=+debug_info
33 endif
34
0c9da97 @klacke added ability to run as different user than root
authored
35 CC=@CC@
36 CFLAGS=@CFLAGS@
37 LINKER=@LINKER@
38 LDFLAGS=@LDFLAGS@
39 WIN32=@WIN32@
40 BSDI=@BSDI@
41 EXE=@EXE@
42 DLL=@DLL@
43 OBJ=@OBJ@
44 OUT=@OUT@
45 FPIC=@FPIC@
46 LIBS=@LIBS@
47
48
49
50 ERLDIR=@ERLDIR@
51
52 LD_SHARED=@LD_SHARED@
53
54 INSTALL=@INSTALL@
55 INSTALL_DATA=@INSTALL_DATA@
21abc5b @klacke Initial revision
authored
56
57
58
59 EMULATOR=beam
60 ifdef debug
61 ERLC_FLAGS+=-Ddebug
62 endif
63
64 ifdef trace
65 ERLC_FLAGS=+trace
66 endif
67
68 ifdef export_all
69 ERLC_FLAGS+=-Dexport_all
70 endif
71
72
73 # Hmm, don't know if you are supposed to like this better... ;-)
74 APPSCRIPT = '$$vsn=shift; $$mods=""; while(@ARGV){ $$_=shift; s/^([A-Z].*)$$/\'\''$$1\'\''/; $$mods.=", " if $$mods; $$mods .= $$_; } while(<>) { s/%VSN%/$$vsn/; s/%MODULES%/$$mods/; print; }'
75
76 # Targets
77
78 ../ebin/%.app: %.app.src ../vsn.mk Makefile
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored
79 perl -e $(APPSCRIPT) "$(VSN)" $(MODULES) < $< > $@
21abc5b @klacke Initial revision
authored
80
81 ../ebin/%.appup: %.appup
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored
82 cp $< $@
21abc5b @klacke Initial revision
authored
83
84 ../ebin/%.$(EMULATOR): %.erl
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored
85 "$(ERLC)" $(ERLC_FLAGS) -o ../ebin $<
21abc5b @klacke Initial revision
authored
86
87 %.$(EMULATOR): %.erl
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored
88 "$(ERLC)" $(ERLC_FLAGS) $<
21abc5b @klacke Initial revision
authored
89
90
91
Something went wrong with that request. Please try again.