File: Makefile

package info (click to toggle)
apache-upload-progress-module 0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, trixie
  • size: 284 kB
  • sloc: ansic: 3,433; makefile: 23
file content (28 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
-include local-options.mk

ifndef APXS
  APXS := $(shell which apxs2 || which apxs)
endif

ifndef APXS
  $(error No apxs found in path, set APXS = /path/to/apxs in local-options.mk)
endif

all: local-shared-build

local-shared-build: module

module: .libs/mod_upload_progress.o

.libs/mod_upload_progress.o: mod_upload_progress.c
	$(APXS) -c $(CFLAGS) mod_upload_progress.c

#   install the shared object file into Apache 
install: local-shared-build
	$(APXS) -i $(CFLAGS) mod_upload_progress.la

#   cleanup
.PHONY: clean
clean:
	-rm -f mod_upload_progress.o mod_upload_progress.lo mod_upload_progress.slo mod_upload_progress.la
	-rm -rf .libs/