Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (28 sloc) 768 Bytes
CC?= gcc
CFLAGS+=-Os
STRIP=strip
PREFIX?= /usr/local
INSTALL?= install
INSTALLDIR= ${INSTALL} -d
INSTALLBIN= ${INSTALL} -m 555
INSTALLMAN= ${INSTALL} -m 444
.PHONY: clean all
all: tmux-cpu-freq tmux-ping tmux-mem
tmux-cpu-freq: tmux-cpu-freq.c
$(CC) $(CFLAGS) -o tmux-cpu-freq tmux-cpu-freq.c
$(STRIP) -s tmux-cpu-freq
tmux-ping: tmux-ping.c
$(CC) $(CFLAGS) -o tmux-ping tmux-ping.c
$(STRIP) -s tmux-ping
tmux-mem: tmux-mem.c
$(CC) $(CFLAGS) -o tmux-mem tmux-mem.c
$(STRIP) -s tmux-mem
clean:
rm -f tmux-cpu-freq
rm -f tmux-ping
rm -f tmux-mem
install: all
${INSTALLDIR} ${DESTDIR}${PREFIX}/bin
${INSTALLBIN} tmux-cpu-freq ${DESTDIR}${PREFIX}/bin/
${INSTALLBIN} tmux-ping ${DESTDIR}${PREFIX}/bin/
${INSTALLBIN} tmux-mem ${DESTDIR}${PREFIX}/bin/