File: Makefile.apxs

package info (click to toggle)
libapache2-mod-fcgid 1%3A2.3.9-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,456 kB
  • sloc: ansic: 5,912; xml: 1,052; sh: 118; sed: 64; awk: 37; makefile: 21
file content (71 lines) | stat: -rw-r--r-- 1,922 bytes parent folder | download | duplicates (4)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
##
##  Makefile.apxs -- Feature test procedures for mod_fcgid Apache module
##
##  Do not use this target; ./configure.apxs from the mod_fcgid dir root
##
 
# top_builddir and top_srcdir are misnomers, because build/*.mk
# scripts expect it them be the parent of the build directory,
# and fail to trust the installbuilddir.
exp_installbuilddir=$(shell $(APXS) -q exp_installbuilddir)
top_srcdir=$(installbuilddir)/..
top_builddir=$(installbuilddir)/..

fcgid_builddir=..
fcgid_srcdir=..
builddir=.
srcdir=.

CLEAN_TARGETS = conftest_foofn.c \
                conftest_sys_file_h.c \
                conftest_sys_mman_h.c \
                conftest_sys_mutex_h.c \
                conftest_sys_shm_h.c \
		*.loT
TARGETS       = conftest_foofn \
                conftest_sys_file_h \
                conftest_sys_mman_h \
                conftest_sys_mutex_h \
                conftest_sys_shm_h

PROGRAM_LDADD        = 
PROGRAM_DEPENDENCIES = 

include $(exp_installbuilddir)/rules.mk

# Function checks follow this pattern; one to execute, one to create source
# Header file checks simply validate that compilation into an .lo succeeds
# TODO When the first function test is added, hijack conftest_foofn

conftest_foofn: conftest_foofn.lo
	$(LINK) conftest_foofn.lo

conftest_sys_file_h: conftest_sys_file_h.lo
	@echo "success" > $@

conftest_sys_mman_h: conftest_sys_mman_h.lo
	@echo "success" > $@

conftest_sys_mutex_h: conftest_sys_mutex_h.lo
	@echo "success" > $@

conftest_sys_shm_h: conftest_sys_shm_h.lo
	@echo "success" > $@

conftest_foofn.c:
	@echo "#include <sys/types.h>" > $@
	@echo "#include <sys/stat.h>" >> $@
	@echo "int main() { return foofn(2, 0644); }" >> $@

conftest_sys_file_h.c:
	@echo "#include <sys/file.h>" > $@

conftest_sys_mman_h.c:
	@echo "#include <sys/mman.h>" > $@

conftest_sys_mutex_h.c:
	@echo "#include <sys/mutex.h>" > $@

conftest_sys_shm_h.c:
	@echo "#include <sys/shm.h>" > $@