1#
2# Makefile for mod_auth_cookie_(my)sql2
3#
4
5# "apxs" is searched in all directories of your PATH variable.
6# If apxs cannot be found during the make process, you can adjust
7# the path, i.e.:
8#APXS = /usr/local/apache2/bin/apxs
9APXS = apxs2
10
11# mysql_config is searched in all directories of your PATH variable.
12# If apxs cannot be found during the make process, you can adjust the
13# the path, i.e.:
14# MYSQCPPFLAGS = `/opt/mysql/bin/mysql_config --include`
15# MYSQLDFLAGS  = `/opt/mysql/bin/mysql_config --libs`
16MYSQCPPFLAGS = `mysql_config --include`
17MYSQLDFLAGS  = `mysql_config --libs`
18
19############### Please don't change anything below this line ###############
20
21MODULE_NAME = auth_cookie_mysql2
22APACHE_MODULE = mod_auth_cookie_mysql2.so
23
24SRCS = mod_auth_cookie_sql2.c mod_auth_cookie_sql2_mysql.c
25OBJS = mod_auth_cookie_sql2.o mod_auth_cookie_sql2_mysql.o
26
27RM = rm -f
28LN = ln -sf
29CP = cp -f
30
31
32#CFLAGS += -DNDEBUG
33#CFLAGS +=  -DDEBUG
34
35CFLAGS = -Wc,-Wall $(MYSQCPPFLAGS) -DMODULE_NAME=$(MODULE_NAME) -DMODULE_NAME_module=$(MODULE_NAME)_module
36LDFLAGS = $(MYSQLDFLAGS) -o $(APACHE_MODULE)
37
38default: all
39
40all: $(APACHE_MODULE)
41
42$(APACHE_MODULE): $(SRCS)
43	$(APXS) -c $(CFLAGS) $(LDFLAGS) $(SRCS)
44
45install: all
46	$(APXS) -i -a -n $(MODULE_NAME) ./.libs/$(APACHE_MODULE)
47
48clean:
49	$(RM) $(OBJS) $(APACHE_MODULE)
50