Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 87 lines (57 sloc) 1.365 kb
21abc5b @klacke Initial revision
authored
1 ###-*-makefile-*- ; force emacs to enter makefile-mode
2
3a3459c @klacke ""
authored
3
4 PREFIX = @prefix@
9624397 @klacke patch from Fredrik Linder to make it easier to integrate yaws into a…
authored
5 ETCDIR = $(DESTDIR)@sysconfdir@
6 VARDIR = $(DESTDIR)@localstatedir@
3a3459c @klacke ""
authored
7 INSTALLPREFIX = $(DESTDIR)$(PREFIX)
21abc5b @klacke Initial revision
authored
8
0c9da97 @klacke added ability to run as different user than root
authored
9 ERL=@ERL@
28e4c73 @klacke first attempt to run properly under cygwin
authored
10 WERL=@WERL@
0c9da97 @klacke added ability to run as different user than root
authored
11 ERLC=@ERLC@
12 EMULATOR=beam
13
14 ifdef debug
15 ERLC_FLAGS+=-Ddebug
16 endif
17
18 ifdef trace
19 ERLC_FLAGS=+trace
20 endif
21
22 ifdef export_all
23 ERLC_FLAGS+=-Dexport_all
24 endif
25
26 CC=@CC@
27 CFLAGS=@CFLAGS@
28 LINKER=@LINKER@
29 LDFLAGS=@LDFLAGS@
30 WIN32=@WIN32@
31 BSDI=@BSDI@
32 EXE=@EXE@
33 DLL=@DLL@
34 OBJ=@OBJ@
35 OUT=@OUT@
36 FPIC=@FPIC@
37 LIBS=@LIBS@
38
39
40
41 ERLDIR=@ERLDIR@
42
43 LD_SHARED=@LD_SHARED@
44
45 INSTALL=@INSTALL@
46 INSTALL_DATA=@INSTALL_DATA@
21abc5b @klacke Initial revision
authored
47
48
49
50 EMULATOR=beam
51 ifdef debug
52 ERLC_FLAGS+=-Ddebug
53 endif
54
55 ifdef trace
56 ERLC_FLAGS=+trace
57 endif
58
59 ifdef export_all
60 ERLC_FLAGS+=-Dexport_all
61 endif
62
63
64 INSTALL=install -c
65 INSTALL_DATA=${INSTALL} -m 644
66
67
68 # Hmm, don't know if you are supposed to like this better... ;-)
69 APPSCRIPT = '$$vsn=shift; $$mods=""; while(@ARGV){ $$_=shift; s/^([A-Z].*)$$/\'\''$$1\'\''/; $$mods.=", " if $$mods; $$mods .= $$_; } while(<>) { s/%VSN%/$$vsn/; s/%MODULES%/$$mods/; print; }'
70
71 # Targets
72
73 ../ebin/%.app: %.app.src ../vsn.mk Makefile
74 perl -e $(APPSCRIPT) "$(VSN)" $(MODULES) < $< > $@
75
76 ../ebin/%.appup: %.appup
77 cp $< $@
78
79 ../ebin/%.$(EMULATOR): %.erl
28e4c73 @klacke first attempt to run properly under cygwin
authored
80 "$(ERLC)" $(ERLC_FLAGS) -o ../ebin $<
21abc5b @klacke Initial revision
authored
81
82 %.$(EMULATOR): %.erl
28e4c73 @klacke first attempt to run properly under cygwin
authored
83 "$(ERLC)" $(ERLC_FLAGS) $<
21abc5b @klacke Initial revision
authored
84
85
86
Something went wrong with that request. Please try again.