~ubuntu-branches/ubuntu/lucid/silo/lucid

« back to all changes in this revision

Viewing changes to Rules.make

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2007-10-25 09:28:08 UTC
  • mfrom: (15.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071025092808-1yhj12t7s4zqsfu5
Tags: 1.4.13a+git20070930-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Build with -fno-stack-protector.
  - Change silo.postinst to automatically update the boot block without
    invoking siloconfig and keep asking questions on upgrades.
  - Convert silo.conf to use /dev/disk/by-uuid.
  - Ubuntu maintainer foobar.
  - Fix debian/rules call to dh_installdocs.
  - Drop the requirement of gcc-4.1 and start using default gcc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
VERSION=1.4.13
 
2
IMGVERSION=0.99
 
3
SHELL=/bin/bash
 
4
RM=rm -f
 
5
# We want to force 32-bit builds
 
6
CC=gcc -m32
 
7
LD=ld -m elf32_sparc
 
8
AS=as
 
9
STRIP=strip
 
10
NM=nm
 
11
ELFTOAOUT=elftoaout
 
12
BIN2H=../common/bin2h
 
13
 
 
14
SMALL_RELOC=0x280000
 
15
LARGE_RELOC=0x380000
 
16
 
 
17
cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
 
18
                > /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
 
19
 
 
20
CFLAGS = -Os -Wall -I. -I../include -fomit-frame-pointer \
 
21
        -fno-strict-aliasing -DSMALL_RELOC=$(SMALL_RELOC) \
 
22
        -DLARGE_RELOC=$(LARGE_RELOC)
 
23
 
 
24
ifeq ($(call cc-option-yn, -fno-stack-protector),y)
 
25
CFLAGS += -fno-stack-protector
 
26
endif
 
27
 
 
28
OPSYS=$(shell uname)
 
29
OSREV=$(shell uname -r)
 
30
ifeq ($(OPSYS),SunOS)
 
31
  ifeq (5.,$(findstring 5.,$(OSREV)))
 
32
    OPSYS=Solaris
 
33
  endif
 
34
endif
 
35
MACHINE=$(subst sparc64,sparc,$(shell uname -m))
 
36
 
 
37
../common/%:
 
38
        $(MAKE) -C ../common $*