2011-09-20 20:19:24 +04:00
|
|
|
CC=gcc
|
2012-03-27 22:51:18 +04:00
|
|
|
ifeq ($(APXS_PATH),)
|
|
|
|
APXS_PATH=/usr/sbin/apxs
|
2012-03-27 22:46:56 +04:00
|
|
|
endif
|
2011-09-20 20:19:24 +04:00
|
|
|
|
|
|
|
MY_LDFLAGS=-lcurl -lyajl
|
2011-09-21 00:57:29 +04:00
|
|
|
|
|
|
|
# Note that gcc flags are passed through apxs, so preface with -Wc
|
|
|
|
MY_CFLAGS=-Wc,-I. -Wc,-Wall
|
2011-09-20 20:19:24 +04:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o .la
|
|
|
|
.c.la:
|
2013-06-11 19:10:56 +04:00
|
|
|
$(APXS_PATH) $(MY_LDFLAGS) $(MY_CFLAGS) -c $<
|
2011-09-20 20:19:24 +04:00
|
|
|
.c.o:
|
|
|
|
$(CC) -c $<
|
|
|
|
|
2013-06-11 19:10:56 +04:00
|
|
|
all: mod_auth_browserid.la
|
2011-09-20 20:19:24 +04:00
|
|
|
|
2013-06-11 19:10:56 +04:00
|
|
|
install: mod_auth_browserid.la
|
2011-09-20 20:19:24 +04:00
|
|
|
@echo "-"$*"-" "-"$?"-" "-"$%"-" "-"$@"-" "-"$<"-"
|
2013-06-11 19:10:56 +04:00
|
|
|
$(APXS_PATH) -i $?
|
2011-09-20 20:19:24 +04:00
|
|
|
|
|
|
|
clean:
|
2013-06-11 19:10:56 +04:00
|
|
|
-rm -f *.o *.lo *.la *.slo
|
2011-09-20 20:19:24 +04:00
|
|
|
-rm -rf .libs
|
|
|
|
|