Magellan Linux

Annotation of /tags/mkinitrd-6_0_9/mkinitrd-magellan/loadinitrd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 758 - (hide annotations) (download)
Thu Jun 26 23:04:53 2008 UTC (16 years ago) by (unknown author)
File size: 538 byte(s)
This commit was manufactured by cvs2svn to create tag
'mkinitrd-6_0_9'.
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