util/textselect

Makefile in master
Repositories | Summary | Log | Files | README.md | LICENSE

Makefile (446B) download


 1CFLAGS += -g -std=c99 -O2 -Wall -Wextra -Wpedantic
 2LDFLAGS += -lncurses
 3PREFIX ?= /usr
 4
 5BINS := textselect pipeto
 6HEADERS := arg.h config.h
 7
 8.PHONY: all install clean
 9
10all: $(BINS)
11
12%.o: %.c $(HEADERS)
13	$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
14
15%: %.o
16	$(CC) $< -o $@ $(LDFLAGS)
17
18install: all
19	cp textselect $(PREFIX)/bin/
20	cp pipeto $(PREFIX)/bin/
21	cp textselect.1 $(PREFIX)/share/man/man1/
22
23clean:
24	rm -f textselect textselect.o pipeto pipeto.o