]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/nash/Makefile
GD-Graph fuer Maniac eingebaut
[people/pmueller/ipfire-2.x.git] / src / nash / Makefile
CommitLineData
330345c2 1CFLAGS=-Wall -Werror -DVERSION=\"$(VERSION)\" -g -D_FORTIFY_SOURCE=2
cd1a2927
MT
2VERSION=$(shell awk -F= '/^VERSION=/ { print $$2 }' mkinitrd)
3
4ARCH := $(patsubst i%86,i386,$(shell uname -m))
5ARCH := $(patsubst sparc%,sparc,$(ARCH))
6
cd1a2927 7STATIC=-static
cd1a2927
MT
8
9mandir=usr/share/man
10
330345c2
MT
11nash: nash.o mount_by_label.o name_to_dev_t.o
12 $(CC) $(STATIC) -g $(LDFLAGS) -o $@ $^
cd1a2927
MT
13
14clean:
330345c2 15 rm -f nash $(MINILIBC) *.o
cd1a2927
MT
16
17install:
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