| 1 |
-include local-options.mk |
| 2 |
|
| 3 |
ifndef APXS |
| 4 |
APXS := $(shell which apxs2 || which apxs) |
| 5 |
endif |
| 6 |
|
| 7 |
ifndef APXS |
| 8 |
$(error No apxs found in path, set APXS = /path/to/apxs in local-options.mk) |
| 9 |
endif |
| 10 |
|
| 11 |
all: local-shared-build |
| 12 |
|
| 13 |
local-shared-build: module |
| 14 |
|
| 15 |
module: .libs/mod_upload_progress.o |
| 16 |
|
| 17 |
.libs/mod_upload_progress.o: mod_upload_progress.c |
| •18 |
$(APXS) -c -Wc,-ffile-prefix-map=$(CURDIR)=. $(CFLAGS) mod_upload_progress.c |
| 19 |
|
| 20 |
|
| 21 |
install: local-shared-build |
| 22 |
$(APXS) -i $(CFLAGS) mod_upload_progress.la |
| 23 |
|
| 24 |
|
| 25 |
.PHONY: clean |
| 26 |
clean: |
| 27 |
-rm -f mod_upload_progress.o mod_upload_progress.lo mod_upload_progress.slo mod_upload_progress.la |
| 28 |
-rm -rf .libs/ |