File: Makefile

package info (click to toggle)
unionfs 1.4%2Bdebian-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 924 kB
  • ctags: 929
  • sloc: ansic: 9,905; sh: 2,787; makefile: 253; perl: 200
file content (19 lines) | stat: -rw-r--r-- 636 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Makefile for building unionfs out-of-tree.

CFLAGS += -DCONFIG_UNION_FS=1 -DUNIONFS_IMAP

KDIR ?= /lib/modules/`uname -r`/build
MODPATH ?= /lib/modules/`uname -r`/kernel/fs/unionfs

modules:
	CFLAGS="$(CFLAGS)" make -C $(KDIR) SUBDIRS=`pwd`/build CONFIG_UNION_FS=m $(DBG_CONFIG) CC="${CROSS_COMPILE}gcc" modules

install: modules
	install -d $(MODPATH)
	install -m 644 -c `pwd`/build/unionfs.ko $(MODPATH)
	/sbin/depmod -a

clean:
	find . \( -name '*.ko' -o -name '*.o' -o -name '.tmp_versions' -o -name '*~' -o -name '.*.cmd' \
		-o -name '*.mod.c' -o -name '*.tar.bz2' -o -name '*.rej' -o -name '*.orig' \)\
		-print | xargs rm -Rf