New package: interbench-0.31

This commit is contained in:
Andrea Brancaleoni 2016-10-24 11:09:26 +02:00
parent 52359924eb
commit b1888e2b6a
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,30 @@
TARGET = interbench
LIBS = -lm -pthread -lrt
CC ?= gcc
CFLAGS ?= -g -Wall
.PHONY: default all clean
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) -Wall $(LIBS) $(LDFLAGS) -o $@
clean:
-rm -f *.o
-rm -f $(TARGET)
install:
install -Dm755 $(TARGET) $(DESTDIR)/usr/bin/$(TARGET)
install -Dm644 $(TARGET).8 $(DESTDIR)/usr/share/man/man8/$(TARGET).8
install -Dm644 readme $(DESTDIR)/usr/share/doc/$(TARGET)/readme
install -Dm644 readme.interactivity $(DESTDIR)/usr/share/doc/$(TARGET)/readme.interactivity

View file

@ -0,0 +1,16 @@
# Template file for 'interbench'
pkgname=interbench
version=0.31
revision=1
build_style=gnu-makefile
short_desc="Emulates and measures CPU scheduling latency and jitter"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://users.on.net/~ckolivas/interbench"
distfiles="http://ck.kolivas.org/apps/interbench/$pkgname-$version.tar.bz2"
checksum=89d438b28aef22d26e79812762a57a9f9344a8dd8826edebfe60dad48ee1c784
pre_build() {
cp $FILESDIR/Makefile .
make clean
}