~ubuntu-branches/ubuntu/hardy/kvm/hardy-backports

« back to all changes in this revision

Viewing changes to libkvm/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-11-15 02:21:55 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20071115022155-pxoxb8kfcrkn72mi
Tags: 1:52+dfsg-0ubuntu1
* New upstream release.
* 08_default_tdf.patch
  - Make -tdf the default and add a -no-tdf option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include ../config.mak
 
2
include ../user/config.mak
 
3
include config-$(ARCH).mak
 
4
 
 
5
# cc-option
 
6
# Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)
 
7
cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
 
8
              > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
 
9
 
 
10
CFLAGS += $(autodepend-flags) -g -fomit-frame-pointer -Wall
 
11
CFLAGS += $(call cc-option, -fno-stack-protector, "")
 
12
CFLAGS += $(call cc-option, -fno-stack-protector-all, "")
 
13
CFLAGS += -I $(KERNELDIR)/include
 
14
 
 
15
LDFLAGS += $(CFLAGS)
 
16
 
 
17
CXXFLAGS = $(autodepend-flags)
 
18
 
 
19
autodepend-flags = -MMD -MF $(dir $*).$(notdir $*).d
 
20
 
 
21
 
 
22
all: libkvm.a
 
23
 
 
24
libkvm.a: libkvm.o $(libkvm-$(ARCH)-objs)
 
25
        $(AR) rcs $@ $^
 
26
 
 
27
install:
 
28
        install -D libkvm.h $(DESTDIR)/$(PREFIX)/include/libkvm.h
 
29
        install -D $(KERNELDIR)/include/linux/kvm.h \
 
30
                $(DESTDIR)/$(PREFIX)/include/linux/kvm.h
 
31
        install -D $(KERNELDIR)/include/linux/kvm_para.h \
 
32
                $(DESTDIR)/$(PREFIX)/include/linux/kvm_para.h
 
33
        install -D libkvm.a $(DESTDIR)/$(PREFIX)/$(LIBDIR)/libkvm.a
 
34
 
 
35
-include .*.d
 
36
 
 
37
clean:
 
38
        $(RM) *.o *.a .*.d