2
# aufs sample -- ULOOP driver
4
# Copyright (C) 2007 Junjiro Okajima
6
# This program, aufs is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 of the License, or
9
# (at your option) any later version.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program; if not, write to the Free Software
18
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
# $Id: Makefile,v 1.3 2007/12/03 01:39:00 sfjro Exp $
22
KDIR = /lib/modules/$(shell uname -r)/build
25
UserAp = ulohttp ulobdev
26
Tgt= ${UserLib} ${UserAp}
27
UloopVars = /tmp/uloopvars.mk
29
all: drivers/block/uloop.ko ${Tgt}
31
# the environment variables are not inherited since 2.6.23
32
drivers/block/uloop.ko clean: MAKE += ULOOP_EXTRA_CFLAGS=-I${CURDIR}/include
33
drivers/block/uloop.ko clean: MAKE += -C ${KDIR} M=${CURDIR}/drivers/block CONFIG_BLK_DEV_ULOOP=m
34
drivers/block/uloop.ko:
39
${RM} ${Tgt} ${UloopVars} *.o *~
41
UserCFLAGS = -g -Wall -D_FILE_OFFSET_BITS=64 -DNDEBUG -I${CURDIR}/include -UNDEBUG
42
libuloop.a: CFLAGS=${UserCFLAGS}
43
libuloop.a: libuloop.a(libuloop.o)
45
${UserAp}: CFLAGS += ${UserCFLAGS}
46
${UserAp}: LDLIBS += -L${CURDIR} -luloop
47
ulohttp: LDLIBS += -lcurl