Magellan Linux

Annotation of /tags/mkinitrd-6_1_7/loadinitrd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
Original Path: trunk/mkinitrd-magellan/loadinitrd/Makefile
File size: 538 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 niro 532 VERSION=$(shell cat ../VERSION)
2     CFLAGS=-Wall -DVERSION=\"$(VERSION)\" -g -D_FORTIFY_SOURCE=2
3    
4     ARCH := $(patsubst i%86,i386,$(shell uname -m))
5     ARCH := $(patsubst sparc%,sparc,$(ARCH))
6    
7     ifeq (i386, $(ARCH))
8     CC:=diet $(CC)
9     else
10     STATIC=-static
11     endif
12    
13     LDFLAGS=-lnewt -lslang
14    
15     mandir=usr/share/man
16    
17     loadinitrd: loadinitrd.o dietstubs.o ctype.o
18     $(CC) $(STATIC) -g -o $@ loadinitrd.o $(LDFLAGS) dietstubs.o ctype.o
19    
20     clean:
21     rm -f loadinitrd loadinitrd.o
22    
23     install:
24     mkdir -p $(DESTDIR)/sbin
25     install -m 755 loadinitrd $(DESTDIR)/sbin/loadinitrd