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

« back to all changes in this revision

Viewing changes to first-isofs/Makefile

  • 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
##
 
2
## CD Linux Loader for SPARC
 
3
##
 
4
 
 
5
include ../Rules.make
 
6
 
 
7
LDFLAGS = -N -Ttext 0x4000
 
8
 
 
9
NAME = isofs
 
10
 
 
11
all: $(NAME).b
 
12
 
 
13
.c.o:
 
14
        $(CC) $(CFLAGS) -c $*.c
 
15
 
 
16
.S.o:
 
17
        $(CC) $(CFLAGS) -c $*.S
 
18
 
 
19
OBJS_COMMON = ../common/prom.o ../common/console.o ../common/tree.o
 
20
OBJS = crt0.o $(NAME).o $(OBJS_COMMON)
 
21
 
 
22
$(NAME): $(OBJS)
 
23
        $(LD) $(LDFLAGS) -Bstatic -o $@ $(OBJS)
 
24
 
 
25
$(NAME).b: $(NAME)
 
26
        dd if=/dev/zero bs=512 count=1 of=$@
 
27
        $(ELFTOAOUT) $< -o $<.aout || ($(RM) $@ && exit 1)
 
28
        cat $<.aout >> $@
 
29
 
 
30
crt0.o: crt0.S
 
31
        $(CC) $(CFLAGS) -c -Wa,-Av9 -o $@ $<
 
32
 
 
33
clean:
 
34
        $(RM) *.o $(NAME) $(NAME).b $(NAME).aout