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