This file is indexed.

/usr/src/blcr-0.8.2/Makefile.am is in blcr-dkms 0.8.2-15ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
###
# Optional directories
###
# Example init script
if CR_BUILD_ETC
etc_dir = etc
endif
# Kernel modules
if CR_BUILD_MODULES
module_dirs = blcr_imports cr_module
module_blcr = @TOP_BUILDDIR@/cr_module/kbuild/blcr.ko
module_imports = @TOP_BUILDDIR@/blcr_imports/kbuild/blcr_imports.ko
endif
# Libraries
if CR_BUILD_LIBCR
libcr_dirs = libcr
endif
# User-space utils
if CR_BUILD_UTIL
util_dirs = util man
endif
# Tests
if CR_BUILD_TESTS
tests_dirs = tests
endif
# Contrib
if CR_BUILD_CONTRIB
contrib_dirs = contrib
endif
# cr_info is disabled since vmadcheck is currently broken -PHH 12.5.03
if BUILD_CR_INFO
cr_info=cr_info
else
cr_info=
endif

if CRI_DEBUG
cr_ktrace_mask = 0xffff
cr_read_fault_rate = 0
cr_write_fault_rate = 0
insmod_blcr_args = \
	cr_ktrace_mask=$(cr_ktrace_mask) \
	cr_read_fault_rate=$(cr_read_fault_rate) \
	cr_write_fault_rate=$(cr_write_fault_rate)
endif


# Never build as part of 'all', 'check' or 'install', but may be built manually.
NOAUTO_DIRS = examples rpm doc

# include comes first to ensure up-to-date headers for all later steps
# module_dirs preceedes . due to _depmod rule
# libcr_dirs preceedes util_dirs to ensure up-to-date libs for the utils
SUBDIRS = include $(module_dirs) $(libcr_dirs) $(util_dirs) \
	  $(etc_dir) $(tests_dirs) $(contrib_dirs) .
# Automake has been observed to build DIST_SUBDIRS incorrectly, so we build it
DIST_SUBDIRS = man include libcr util tests contrib etc \
		blcr_imports cr_module vmadump4 $(NOAUTO_DIRS)
EXTRA_DIST = README README.devel LICENSE.txt COPYING COPYING.LIB NEWS \
	     config/kbuild.mak.in config/cross_helper.c autogen.sh \
	     README.FTB

# Clean out CVS droppings
dist-hook:
	find $(distdir) -depth -name CVS -type d -exec rm -Rf '{}' \;
	find $(distdir) -name .#\* -type f -exec rm -f '{}' \;

# PHH 07_Dec_2004: disabled, since our dist_blcr script does even more
# We want to check that our RPM building works
#distcheck-hook:
#	$(MAKE) $(AM_MAKEFLAGS) -C rpm $@

# Target to build the source rpm for distribution, creating the
# source tarball (blcr-X.Y.Z.tar.gz) as a prereq.
dist-srpm:
	$(MAKE) $(AM_MAKEFLAGS) -C rpm srpm

# Target to build source and binary rpms
rpms:
	$(MAKE) $(AM_MAKEFLAGS) -C rpm all

if CR_BUILD_MODULES
# Target to build the kernel modules
modules: $(CONFIG_HEADER)
	$(MAKE) $(AM_MAKEFLAGS) --no-print-directory -C include
	for dir in $(module_dirs); do \
	  $(MAKE) $(AM_MAKEFLAGS) --no-print-directory -C $$dir || exit 1; \
	done

# Target to build and check the kernel modules against System.map
_depmod: # No rebuild of modules
	@@LINUX_SYMTAB_CMD@ | env NM='$(NM)' @PERL@ -- $(srcdir)/contrib/cr_depmod $(module_imports) $(module_blcr) >.depmod.err 2>&1; \
	 rc=$$?; \
	 if test $$rc '!=' 0; then \
	     echo "ERROR: 'depmod' check FAILED (rc=$$rc)"; \
	     cat .depmod.err; \
	 else \
	     echo "'depmod' check PASSED"; \
	 fi >&2; \
	 rm -f .depmod.err; \
	 exit $$rc
depmod: modules
	@$(MAKE) $(AM_MAKEFLAGS) _$@ # For strong dependency ordering w/ -j

SUDO = $(shell [ `id -u ` = 0 ] || echo sudo)
# Targets to (un)load the kernel modules
# NOTE: we rmmod blcr_vmadump in case of upgrade from 0.7.X
rmmod:
	if /sbin/lsmod | grep '^blcr '         > /dev/null 2>&1; then $(SUDO) /sbin/rmmod blcr; fi
	if /sbin/lsmod | grep '^blcr_vmadump ' > /dev/null 2>&1; then $(SUDO) /sbin/rmmod blcr_vmadump; fi
	if /sbin/lsmod | grep '^blcr_imports ' > /dev/null 2>&1; then $(SUDO) /sbin/rmmod blcr_imports; fi
_insmod: rmmod	# No rebuild of modules or depmod check
	$(SUDO) /sbin/insmod $(module_imports) $(insmod_imports_args)
	$(SUDO) /sbin/insmod $(module_blcr) $(insmod_blcr_args)
insmod: depmod
	@$(MAKE) $(AM_MAKEFLAGS) _$@ # For strong dependency ordering w/ -j
 
module_phony = modules _depmod depmod _insmod insmod rmmod

# Reconfigure if the kernel config, version or symbol table have changed
# or if our imports template has changed
CONFIG_STATUS_DEPENDENCIES = \
	@LINUX_OBJ@/.config \
	@LINUX_OBJ@/include/linux/version.h \
	@LINUX_SYMTAB_FILE@ \
	@TOP_SRCDIR@/include/blcr_imports.h.in

# Check module dependencies at end of build
all_local_depmod = _depmod
endif

# Convenience
util libcr examples:
	$(MAKE) $(AM_MAKEFLAGS) -C $@ all
tests:
	$(MAKE) $(AM_MAKEFLAGS) -C $@ all $@
	if test -d libcr32/$@; then $(MAKE) $(AM_MAKEFLAGS) -C libcr32/$@ all $@; fi
bonus-tests:
	$(MAKE) $(AM_MAKEFLAGS) -C tests all $@
bonus-check:
	$(MAKE) $(AM_MAKEFLAGS) all
	$(MAKE) $(AM_MAKEFLAGS) -C tests bonus-check
	if test -d libcr32/tests; then $(MAKE) $(AM_MAKEFLAGS) -C libcr32 check; fi

if CR_INSTALLED_UTIL
symlinks:
	mkdir -p bin
	for f in cr_checkpoint cr_restart cr_run $(cr_info); do \
		test -h bin/$$f || ln -s $(bindir)/$$f bin/; \
	done
else
symlinks:
	mkdir -p bin
	for f in cr_checkpoint cr_restart cr_run $(cr_info); do \
		test -h bin/$$f || ln -s @TOP_BUILDDIR@/util/$$f/$$f bin/; \
	done
endif

# Local hooks/extensions
clean-local:
	@for dir in $(NOAUTO_DIRS); do \
	  test -f $$dir/Makefile && $(MAKE) $(AM_MAKEFLAGS) -C $$dir clean; \
	done; true
	if test -d libcr32; then $(MAKE) $(AM_MAKEFLAGS) -C libcr32 clean; fi
all-local: symlinks
	if test -d libcr32; then $(MAKE) $(AM_MAKEFLAGS) -C libcr32 all; fi
	if test -n "$(all_local_depmod)"; then $(MAKE)  $(AM_MAKEFLAGS) $(all_local_depmod); fi
check-local:
	if test -d libcr32; then $(MAKE) $(AM_MAKEFLAGS) libcr util; fi
	if test -d libcr32; then $(MAKE) $(AM_MAKEFLAGS) -C libcr32 check; fi
install-data-local:
	if test -d libcr32; then $(MAKE) $(AM_MAKEFLAGS) -C libcr32 install-data; fi
install-exec-local:
	if test -d libcr32; then $(MAKE) $(AM_MAKEFLAGS) -C libcr32 install-exec; fi
uninstall-local:
	if test -d libcr32; then $(MAKE) $(AM_MAKEFLAGS) -C libcr32 uninstall; fi
	-if test -d "$(DESTDIR)@CR_MODULE_DIR@"; then rmdir "$(DESTDIR)@CR_MODULE_DIR@"; fi
distclean-local:
	rm -rf libcr32 bin

# Our rpm specfile wants to query some vars
LINUX_VER=@LINUX_VER@
LINUX_SRC=@LINUX_SRC@
echoval:
	@echo $($(VARNAME)) | sed 's/"/\\"/'g

.PHONY: dist-srpm dist-oscar rpms examples util libcr tests bonus-check echoval $(module_phony)

DISTCLEANFILES = .import_decls .import_calls .cached_kconfig .cached_ksymtab