-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathMakefile.w32
More file actions
30 lines (24 loc) · 732 Bytes
/
Copy pathMakefile.w32
File metadata and controls
30 lines (24 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SOURCE = \
ap_mrb_authnprovider.c \
ap_mrb_connection.c \
ap_mrb_env.c \
ap_mrb_init.c \
ap_mrb_request.c \
ap_mrb_scoreboard.c \
ap_mrb_server.c \
ap_mrb_utils.c \
mod_mruby.c
INC=-I. -Imruby/include
APACHE_ROOT=c:/progra~1/apache~1/apache2.2
APXS=perl "$(APACHE_ROOT)/bin/apxs"
LIB=-lm mruby/build/host/lib/libmruby.a -llibapr-1 -llibaprutil-1 -llibhttpd -lws2_32
DEF=-DAP_DECLARE_EXPORT -DAPR_DECLARE_EXPORT
all: mod_mruby.so
mod_mruby.so: $(SOURCE) mruby/build/host/lib/libmruby.a
$(APXS) -o mod_mruby.so -c $(DEF) $(INC) $(SOURCE) -static-libgcc $(LIB)
mruby/build/host/lib/libmruby.a:
(cd mruby && rake)
install: all
$(APXS) -i -a -n "mruby" mod_mruby.so
clean:
-rm -rf .libs *.o *.so *.lo *.la *.slo *.loT