/usr/src/langford-0.0.20130108/Makefile is in langford-dkms 0.0.20130228-5.
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 | obj-m = langford.o
KVERSION = $(shell uname -r)
all: libs langford_util langford_adc_util
langford.ko: langford.c
export CCFLAGS="-ansi -Wall"
$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
langford_util: langford_util.cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
langford_adc_util: langford_adc_util.cpp langford_spi.cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
libs:
$(MAKE) -C libs/
clean:
#$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
$(RM) -r langford.ko.gz langford_util langford_adc_util
$(MAKE) -C libs/ clean
distclean: clean
$(MAKE) -C ./ clean
$(RM) -r .tmp*
$(RM) -r *~
.PHONY: all libs clean distclean
|