Contents of /tags/mkinitrd-6_1_1/loadinitrd/Makefile
Parent Directory | Revision Log
Revision 841 -
(show annotations)
(download)
Mon May 4 16:31:54 2009 UTC (15 years, 4 months ago) by niro
File size: 538 byte(s)
Mon May 4 16:31:54 2009 UTC (15 years, 4 months ago) by niro
File size: 538 byte(s)
tagged 'mkinitrd-6_1_1'
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 |