File: Makefile

package info (click to toggle)
martian-modem 20080625-2
  • links: PTS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,048 kB
  • ctags: 985
  • sloc: ansic: 6,095; sh: 298; makefile: 236
file content (25 lines) | stat: -rw-r--r-- 649 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

KERNEL_DIR:=/lib/modules/$(shell uname -r)/build
SUBLEVEL:=$(shell echo $(KERNEL_DIR) | cut -d. -f3 | cut -d. -f1 | cut -d-  -f1)
# support begins at SUBLEVEL 20
after20:=$(shell if [ "$(SUBLEVEL)" -gt 20 ] ;then echo OK; fi)

ifdef after20
all: 
	$(MAKE) -C kmodule/ modules
	$(MAKE) -C modem/ all
#	$(MAKE) -C utils/ ptytosock

install:
	$(MAKE) -C kmodule/ install
	$(MAKE) -C modem/ install

else
20less:
	@echo "The martian_dev.ko driver and the complementary helper martian_helper are for use with kernels after 2.6.20. Use the martian-20080407.tar.gz for earlier kernels."
 
endif

clean:
	$(MAKE) -C kmodule/ clean
	$(MAKE) -C modem/ clean