Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | Adapt tiobench to OE |
| 2 | Author: Ludovic Desroches <ludovic.desroches@atmel.com> |
| 3 | |
| 4 | Upstream-Status: Inappropriate [not author] |
| 5 | |
| 6 | Index: Makefile |
| 7 | =================================================================== |
| 8 | --- a/Makefile 2011-05-26 07:48:46.341400974 +0200 |
| 9 | +++ b/Makefile 2011-05-30 06:32:38.091401358 +0200 |
| 10 | @@ -1,8 +1,9 @@ |
| 11 | # Makefile for tiotest |
| 12 | |
| 13 | -CC=gcc |
| 14 | +CC?=gcc |
| 15 | #CFLAGS=-O3 -fomit-frame-pointer -Wall |
| 16 | CFLAGS=-O2 -Wall |
| 17 | +LDFLAGS?= |
| 18 | |
| 19 | #DEFINES=-DUSE_MMAP |
| 20 | #-DUSE_MADVISE |
| 21 | @@ -14,16 +15,16 @@ |
| 22 | |
| 23 | #DEFINES= |
| 24 | |
| 25 | -LINK=gcc |
| 26 | +LINK?=$(CC) |
| 27 | EXE=tiotest |
| 28 | PROJECT=tiobench |
| 29 | # do it once instead of each time referenced |
| 30 | VERSION=$(shell egrep "tiotest v[0-9]+.[0-9]+" tiotest.c | cut -d " " -f 7 | sed "s/v//g") |
| 31 | DISTNAME=$(PROJECT)-$(VERSION) |
| 32 | INSTALL=install |
| 33 | -PREFIX=/usr/local |
| 34 | +PREFIX?=/usr/local |
| 35 | BINDIR=$(PREFIX)/bin |
| 36 | -DOCDIR=/usr/local/doc/$(DISTNAME) |
| 37 | +DOCDIR=$(PREFIX)/share/doc/$(DISTNAME) |
| 38 | |
| 39 | all: $(EXE) |
| 40 | |
| 41 | @@ -34,7 +35,7 @@ |
| 42 | $(CC) -c $(CFLAGS) $(DEFINES) tiotest.c -o tiotest.o |
| 43 | |
| 44 | $(EXE): tiotest.o crc32.o |
| 45 | - $(LINK) -o $(EXE) tiotest.o crc32.o -lpthread |
| 46 | + $(LINK) -o $(EXE) tiotest.o crc32.o -lpthread $(LDFLAGS) |
| 47 | @echo |
| 48 | @echo "./tiobench.pl --help for usage options" |
| 49 | @echo |