Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 903 - (hide annotations) (download)
Wed Aug 5 19:21:45 2009 UTC (14 years, 10 months ago) by niro
File size: 538 byte(s)
tagged 'mkinitrd-6_1_6'
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