Magellan Linux

Contents of /tags/mkinitrd-6_2_0/loadinitrd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 996 - (show annotations) (download)
Sun May 30 11:54:28 2010 UTC (13 years, 11 months ago) by niro
File size: 538 byte(s)
tagged 'mkinitrd-6_2_0'
1 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