mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-09 16:21:13 +00:00
A working test
This commit is contained in:
1 parent
3dd80622f4
commit
89022a9faa
4 files changed
+106
-11
No files matched your search
+2
-1
@@ -22,6 +22,7 @@ lua: luauevent.so
|
||||
|
||||
libuevent.a: libuevent.o
|
||||
$(AR) r $@ $^
|
||||
$(CROSS_COMPILE)strip --strip-unneeded $@
|
||||
|
||||
libuevent.so.$(MAJOR): libuevent.o
|
||||
$(CC) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname=libuevent
|
||||
@@ -30,7 +31,7 @@ luauevent.so: luauevent.o all
|
||||
$(CC) $(LDFLAGS) -shared -o $@ $^ -L . -l uevent -Wl,-soname=uevent
|
||||
|
||||
test: all
|
||||
$(CC) -o test test.c && test
|
||||
$(CC) -g -o test -D NO_DEBUG test.c libuevent.c && ./test
|
||||
|
||||
luatest: lua
|
||||
lua test.lua
|
||||
|
||||
Reference in new issue
Block a user