aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1fb44e3833585859637c559f706a1670bebdbcb9 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
PREFIX	:= /usr
CC	:= gcc
INSTALL	:= install
RM	:= rm
CFLAGS	+= -O2 -Wall -Werror

nullshell: nullshell.c
	$(CC) $(CFLAGS) $(LDFLAGS) nullshell.c -o nullshell

install: nullshell
	$(INSTALL) -D -m0755 nullshell $(DESTDIR)$(PREFIX)/bin/nullshell

clean:
	$(RM) -f nullshell