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) nullshell $(DESTDIR)$(PREFIX)/bin/nullshell clean: $(RM) -f nullshell