Give README some love

This commit is contained in:
2018-11-17 10:58:50 +03:30
parent 41ff40a1de
commit fc9c61f0db
5 changed files with 31 additions and 9 deletions

24
helpers/cpustat/Makefile Normal file
View File

@ -0,0 +1,24 @@
CC?=
PREFIX?=/usr/local
CPPFLAGS=-I$(PREFIX)/include
CFLAGS=-Wall -Wextra -g -O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing
CFLAGS+=$(CPPFLAGS)
LDFLAGS=-L$(PREFIX)/lib
LDLIBS=-lm
RM?=rm -f
CPUSTAT = cpustat
OBJ = cpustat.o
all: $(CPUSTAT)
$(CPUSTAT): $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) $(LDLIBS) -o $(CPUSTAT)
install: all
install -s -C $(CPUSTAT) $(PREFIX)/bin
clean:
$(RM) *.o *.a a.out core temp.* $(CPUSTAT)
$(RM) -r *.dSYM