]> git.ipfire.org Git - ipfire-2.x.git/blame - src/nash/Makefile
Geaendert:
[ipfire-2.x.git] / src / nash / Makefile
CommitLineData
cd1a2927
MT
1CFLAGS=-Wall -DVERSION=\"$(VERSION)\" -g
2VERSION=$(shell awk -F= '/^VERSION=/ { print $$2 }' mkinitrd)
3
4ARCH := $(patsubst i%86,i386,$(shell uname -m))
5ARCH := $(patsubst sparc%,sparc,$(ARCH))
6
7#ifeq (i386, $(ARCH))
8#CC:=diet $(CC)
9#CFLAGS += -DUSE_DIET=1
10#else
11STATIC=-static
12#endif
13
14mandir=usr/share/man
15
16nash: nash.o mount_by_label.o
17 $(CC) $(STATIC) -g $(LDFLAGS) -o $@ nash.o mount_by_label.o
18
19clean:
20 rm -f nash $(MINILIBC) nash.o mount_by_label.o
21
22install:
23 mkdir -p $(BUILDROOT)/sbin
24 mkdir -p $(BUILDROOT)/$(mandir)/man8
25 install -m 755 -s nash $(BUILDROOT)/sbin
26 install -m 644 nash.8 $(BUILDROOT)/$(mandir)/man8