]> git.ipfire.org Git - ipfire-2.x.git/blob - src/nash/Makefile
git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848...
[ipfire-2.x.git] / src / nash / Makefile
1 CFLAGS=-Wall -DVERSION=\"$(VERSION)\" -g
2 VERSION=$(shell awk -F= '/^VERSION=/ { print $$2 }' mkinitrd)
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 #CFLAGS += -DUSE_DIET=1
10 #else
11 STATIC=-static
12 #endif
13
14 mandir=usr/share/man
15
16 nash: nash.o mount_by_label.o
17 $(CC) $(STATIC) -g $(LDFLAGS) -o $@ nash.o mount_by_label.o
18
19 clean:
20 rm -f nash $(MINILIBC) nash.o mount_by_label.o
21
22 install:
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