Contents of /tags/mkinitrd-6_0_2/mkinitrd-magellan/grubby/Makefile
Parent Directory | Revision Log
Revision 667 -
(show annotations)
(download)
Mon Jan 14 19:44:42 2008 UTC (16 years, 8 months ago) by (unknown author)
File size: 726 byte(s)
Mon Jan 14 19:44:42 2008 UTC (16 years, 8 months ago) by (unknown author)
File size: 726 byte(s)
This commit was manufactured by cvs2svn to create tag 'mkinitrd-6_0_2'.
1 | VERSION=$(shell cat ../VERSION) |
2 | |
3 | ARCH := $(patsubst i%86,i386,$(shell uname -m)) |
4 | ARCH := $(patsubst sparc%,sparc,$(ARCH)) |
5 | ARCH := $(patsubst ppc%,ppc,$(ARCH)) |
6 | |
7 | CFLAGS = -Wall -g $(OPTCFLAGS) -DVERSION=\"$(VERSION)\" |
8 | LDFLAGS = -g |
9 | |
10 | LOADLIBES = -lpopt |
11 | |
12 | all: grubby |
13 | |
14 | test: all |
15 | @./test.sh |
16 | |
17 | install: all |
18 | mkdir -p $(DESTDIR)/sbin |
19 | mkdir -p $(DESTDIR)/usr/share/man/man8 |
20 | install -m 755 new-kernel-pkg $(DESTDIR)/sbin |
21 | if [ -f grubby ]; then \ |
22 | install -m 755 grubby $(DESTDIR)/sbin ; \ |
23 | install -m 644 grubby.8 $(DESTDIR)/usr/share/man/man8 ; \ |
24 | fi |
25 | |
26 | grubby: grubby.o mount_by_label.o |
27 | $(CC) -o $@ $^ -Wl,-Bstatic $(LOADLIBES) -Wl,-Bdynamic $(CFLAGS) $(LDFLAGS) |
28 | |
29 | %.o: %.c |
30 | $(CC) -c $(CFLAGS) -o $@ $< |
31 | |
32 | clean: |
33 | rm -f grubby *.o |