~ubuntu-branches/ubuntu/vivid/aufs/vivid

« back to all changes in this revision

Viewing changes to sample/uloop/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2007-12-15 23:32:51 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071215233251-2vgs2lmg8mai5d9e
Tags: 0+20071211-1ubuntu1
* Merge from debian unstable (LP: #175705), remaining changes:
  - Fix for Ubuntu Kernels (updated)
* patches/01_vserver.dpatch: Removed
* patches/06_ubuntu.dpatch: Added (update of ubuntu patch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# aufs sample -- ULOOP driver
 
3
 
 
4
# Copyright (C) 2007 Junjiro Okajima
 
5
#
 
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.
 
10
#
 
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.
 
15
#
 
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
 
19
 
 
20
# $Id: Makefile,v 1.3 2007/12/03 01:39:00 sfjro Exp $
 
21
 
 
22
KDIR = /lib/modules/$(shell uname -r)/build
 
23
 
 
24
UserLib = libuloop.a
 
25
UserAp = ulohttp ulobdev
 
26
Tgt= ${UserLib} ${UserAp}
 
27
UloopVars = /tmp/uloopvars.mk
 
28
 
 
29
all: drivers/block/uloop.ko ${Tgt}
 
30
 
 
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:
 
35
        ${MAKE} modules
 
36
 
 
37
clean:
 
38
        ${MAKE} $@
 
39
        ${RM} ${Tgt} ${UloopVars} *.o *~
 
40
 
 
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)
 
44
 
 
45
${UserAp}: CFLAGS += ${UserCFLAGS}
 
46
${UserAp}: LDLIBS += -L${CURDIR} -luloop
 
47
ulohttp: LDLIBS += -lcurl
 
48
 
 
49
-include priv.mk