2011-09-20 20:19:24 +04:00
|
|
|
CC=gcc
|
2011-09-21 00:57:29 +04:00
|
|
|
MY_APXS=/usr/sbin/apxs
|
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:
|
|
|
|
$(MY_APXS) $(MY_LDFLAGS) $(MY_CFLAGS) -c $<
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $<
|
|
|
|
|
|
|
|
all: mod_auth_browserid.la
|
|
|
|
|
|
|
|
install: mod_auth_browserid.la
|
|
|
|
@echo "-"$*"-" "-"$?"-" "-"$%"-" "-"$@"-" "-"$<"-"
|
|
|
|
$(MY_APXS) -i $?
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o *.lo *.la *.slo
|
|
|
|
-rm -rf .libs
|
|
|
|
|