mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-24 11:34:32 +00:00
Fix bench.c so it actually reads from the pipe/socket, update callback API
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
1f9558059a
commit
cbd962c5b6
2 files changed
+10
-9
No files matched your search
@@ -22,7 +22,7 @@
|
||||
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
.PHONY: all test clean joystick test examples
|
||||
.PHONY: all test clean joystick test examples bench
|
||||
|
||||
#VERSION = $(shell git tag -l | tail -1)
|
||||
VERSION ?= 1.1.0
|
||||
@@ -106,9 +106,9 @@ strip: $(TARGET)
|
||||
@$(STRIP) --strip-unneeded $(TARGET)
|
||||
@size $(TARGET)
|
||||
|
||||
bench: Makefile bench.o $(STATICLIB)
|
||||
@printf " BENCH %s\n" $(STATICLIB)
|
||||
@$(CC) $(CPPFLAGS) -g -o bench bench.c $(STATICLIB) && ./bench
|
||||
bench: Makefile $(STATICLIB)
|
||||
@printf " RUN %s\n" $@
|
||||
@$(CC) $(CPPFLAGS) -D_GNU_SOURCE -g -o bench bench.c $(STATICLIB) && ./bench
|
||||
|
||||
examples: all
|
||||
@$(MAKE) -C examples
|
||||
|
||||
Reference in new issue
Block a user