diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xxhash-test.c | 12 | ||||
-rw-r--r-- | src/xxhash.mk | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/xxhash-test.c b/src/xxhash-test.c new file mode 100644 index 0000000..e7eca64 --- /dev/null +++ b/src/xxhash-test.c @@ -0,0 +1,12 @@ +/* + * This file is part of MXE. + * See index.html for further information. + */ + +#include <xxhash.h> + +int main() { + XXH32_state_t* state = XXH32_createState(); + XXH32_freeState(state); + return 0; +} diff --git a/src/xxhash.mk b/src/xxhash.mk index 35b357c..68f2889 100644 --- a/src/xxhash.mk +++ b/src/xxhash.mk @@ -31,4 +31,9 @@ define $(PKG)_BUILD echo 'Description: xxHash'; \ echo 'Libs: -lxxhash';) \ > '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc' + + '$(TARGET)-gcc' \ + -W -Wall -Werror -ansi -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `'$(TARGET)-pkg-config' $(PKG) --cflags --libs` endef |