Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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