~ubuntu-branches/ubuntu/lucid/skyeye/lucid-proposed

« back to all changes in this revision

Viewing changes to misc/conf/makefile

  • Committer: Bazaar Package Importer
  • Author(s): Yu Guanghui
  • Date: 2007-08-07 13:25:49 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20070807132549-96159k1obat1fxr0
Tags: 1.2.3-1
* New upstream release
* Added NO_BFD=1, don't require libbfd now. (Closes:Bug#423933) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
MAJOR_VERSION = 1
 
2
MINOR_VERSION = 3
 
3
MICRO_VERSION = 0
 
4
EXTRAVERSION =
 
5
 
 
6
MINIGUI_RELEASE=$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)$(EXTRAVERSION)
 
7
 
 
8
# SUBARCH tells the usermode build what the underlying arch is.  That is set
 
9
# first, and if a usermode build is happening, the "ARCH=um" on the command
 
10
# line overrides the setting of ARCH below.  If a native build is happening,
 
11
# then ARCH is assigned, getting whatever value it gets normally, and 
 
12
# SUBARCH is subsequently ignored.
 
13
 
 
14
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
 
15
ARCH := $(SUBARCH)
 
16
 
 
17
MINIGUI_PATH=kernel-$(shell echo $(MINIGUI_RELEASE) | sed -e "s/-//g")
 
18
 
 
19
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
 
20
          else if [ -x /bin/bash ]; then echo /bin/bash; \
 
21
          else echo sh; fi ; fi)
 
22
TOPDIR  := $(shell /bin/pwd)
 
23
 
 
24
HPATH           = $(TOPDIR)/include
 
25
 
 
26
HOSTCC          = gcc
 
27
HOSTCFLAGS      = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
 
28
 
 
29
CROSS_COMPILE   =
 
30
 
 
31
#
 
32
# Include the make variables (CC, etc...)
 
33
#
 
34
 
 
35
AS              = $(CROSS_COMPILE)as
 
36
LD              = $(CROSS_COMPILE)ld
 
37
CC              = $(CROSS_COMPILE)gcc
 
38
CPP             = $(CC) -E
 
39
AR              = $(CROSS_COMPILE)ar
 
40
NM              = $(CROSS_COMPILE)nm
 
41
STRIP           = $(CROSS_COMPILE)strip
 
42
OBJCOPY         = $(CROSS_COMPILE)objcopy
 
43
OBJDUMP         = $(CROSS_COMPILE)objdump
 
44
MAKEFILES       = $(TOPDIR)/.config
 
45
GENKSYMS        = /sbin/genksyms
 
46
DEPMOD          = /sbin/depmod
 
47
KALLSYMS        = /sbin/kallsyms
 
48
MODFLAGS        = -DMODULE
 
49
CFLAGS_KERNEL   =
 
50
PERL            = perl
 
51
AWK             = awk
 
52
TMPPREFIX       =
 
53
 
 
54
export  MAJOR_VERSION MINOR_VERSION MICRO_VERSION EXTRAVERSION MINIGUI_RELEASE ARCH \
 
55
        CONFIG_SHELL TOPDIR HPATH HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC \
 
56
        CPP AR NM STRIP OBJCOPY OBJDUMP MAKE MAKEFILES GENKSYMS MODFLAGS PERL AWK
 
57
 
 
58
-include Makefile
 
59
 
 
60
doit:
 
61
        @echo "You may need to run configure script to build Makefile."
 
62
 
 
63
.PHONY : menuconfig
 
64
menuconfig:
 
65
        $(MAKE) -C scripts/lxdialog -f makefile.lx all
 
66
        $(CONFIG_SHELL) scripts/Menuconfig configs/config.in
 
67
 
 
68
.PHONY : defconfig
 
69
defconfig:
 
70
        @cp configs/defconfig .defconfig
 
71
        $(MAKE) -C scripts/lxdialog -f makefile.lx all
 
72
        $(CONFIG_SHELL) scripts/Menuconfig configs/config.in
 
73
        @rm .defconfig