mod_browserid/Makefile

24 строки
525 B
Makefile
Исходник Постоянная ссылка Обычный вид История

2012-03-27 22:51:18 +04:00
ifeq ($(APXS_PATH),)
APXS_PATH=/usr/sbin/apxs
endif
2011-09-20 20:19:24 +04:00
MY_LDFLAGS=-lcurl -lyajl
# Note that gcc flags are passed through apxs, so preface with -Wc
MY_CFLAGS=-Wc,-I. -Wc,-Wall
2013-06-11 19:33:46 +04:00
SRCS=mod_auth_browserid.c
2011-09-20 20:19:24 +04:00
.SUFFIXES: .c .o .la
2013-06-11 19:33:46 +04:00
build/.libs/mod_auth_browserid.so: $(SRCS)
@mkdir -p build/
@cd build && for file in $^ ; do ln -sf ../$$file . ; done
@cd build && $(APXS_PATH) $(MY_LDFLAGS) $(MY_CFLAGS) -c $^
2011-09-20 20:19:24 +04:00
2013-06-11 19:33:46 +04:00
all: build/.libs/mod_auth_browserid.so
2011-09-20 20:19:24 +04:00
install: build/mod_auth_browserid.la
$(APXS_PATH) -i $<
2011-09-20 20:19:24 +04:00
2013-06-11 19:33:46 +04:00
clean:
-rm -rf build