]> git.ipfire.org Git - ipfire-2.x.git/blob - src/nash/Makefile
PPOE Skript sollte den kill, CGI Fixes
[ipfire-2.x.git] / src / nash / Makefile
1 CFLAGS=-Wall -Werror -DVERSION=\"$(VERSION)\" -g -D_FORTIFY_SOURCE=2
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 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 $(BUILDROOT)/sbin
19 mkdir -p $(BUILDROOT)/$(mandir)/man8
20 install -m 755 -s nash $(BUILDROOT)/sbin
21 install -m 644 nash.8 $(BUILDROOT)/$(mandir)/man8