~ubuntu-branches/ubuntu/lucid/loadlin/lucid

« back to all changes in this revision

Viewing changes to initrd/Makefile.orig

  • Committer: Bazaar Package Importer
  • Author(s): Martin Mitchell
  • Date: 2001-04-08 21:11:58 UTC
  • Revision ID: james.westby@ubuntu.com-20010408211158-js9q3jnoon2l5qve
Tags: 1.6a-6
Set priority to optional.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CC = gcc
 
2
CFLAGS = -m386 -O2  -fomit-frame-pointer -static
 
3
 
 
4
ifneq (1,$(shell if grep __ELF__ `gcc -v 2>&1|head -n1|cut -d' ' -f4` 1>/dev/null 2>&1;then echo -n 1;fi))
 
5
  @echo ""; \
 
6
   echo "needing ELF development tools, giving up";
 
7
  exit 1;
 
8
endif
 
9
 
 
10
all: initdisk freeramdisk Makefile
 
11
 
 
12
linuxrc: linuxrc.c
 
13
        $(CC) $(CFLAGS) -o linuxrc linuxrc.c
 
14
 
 
15
initdisk: linuxrc Makefile freeramdisk mkdisk
 
16
        mkdisk linuxrc
 
17
 
 
18
freeramdisk: freeramdisk.c
 
19
        $(CC) -m386 -O2 -o freeramdisk freeramdisk.c
 
20
 
 
21
clean:
 
22
        rm -f hello initdisk freeramdisk *~ *.o