Makefile (327B)
1 CFLAGS += -O2 -Wall -Wextra 2 PREFIX = /usr 3 4 .PHONY: all install clean 5 6 all: weakbox 7 8 weakbox.o: weakbox.c arg.h 9 $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) 10 11 weakbox: weakbox.o 12 $(CC) $< -o $@ $(LDFLAGS) 13 14 install: weakbox weakbox.1 15 cp weakbox $(PREFIX)/bin/ 16 cp weakbox.1 $(PREFIX)/share/man/man1/ 17 18 clean: 19 rm -f weakbox weakbox.o