Annotation of /tags/mkinitrd-6_1_2/nash/Makefile
Parent Directory | Revision Log
Revision 532 -
(hide annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (17 years ago) by niro
Original Path: trunk/mkinitrd-magellan/nash/Makefile
File size: 511 byte(s)
Sat Sep 1 22:45:15 2007 UTC (17 years ago) by niro
Original Path: trunk/mkinitrd-magellan/nash/Makefile
File size: 511 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 -Werror -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 | STATIC=-static | ||
8 | |||
9 | mandir=usr/share/man | ||
10 | |||
11 | nash: nash.o mount_by_label.o name_to_dev_t.o | ||
12 | $(CC) $(STATIC) -g $(LDFLAGS) -o $@ $^ | ||
13 | |||
14 | clean: | ||
15 | rm -f nash $(MINILIBC) *.o | ||
16 | |||
17 | install: | ||
18 | mkdir -p $(DESTDIR)/sbin | ||
19 | mkdir -p $(DESTDIR)/$(mandir)/man8 | ||
20 | install -m 755 nash $(DESTDIR)/sbin | ||
21 | install -m 644 nash.8 $(DESTDIR)/$(mandir)/man8 |