diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-10-10 12:36:35 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-10-10 12:36:35 (GMT) |
commit | e20bab30188c5b85439949bf0e38c17c88f52528 (patch) | |
tree | a114052ebd375209350ed2f8a072fc487f215d23 | |
parent | 26ce093ba446708d06bdd285fe0f3ec1359a71e9 (diff) | |
download | mxe-e20bab30188c5b85439949bf0e38c17c88f52528.zip mxe-e20bab30188c5b85439949bf0e38c17c88f52528.tar.gz mxe-e20bab30188c5b85439949bf0e38c17c88f52528.tar.bz2 |
add test program for package libmikmod
-rw-r--r-- | src/libmikmod-test.c | 16 | ||||
-rw-r--r-- | src/libmikmod.mk | 5 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/libmikmod-test.c b/src/libmikmod-test.c new file mode 100644 index 0000000..133d6be --- /dev/null +++ b/src/libmikmod-test.c @@ -0,0 +1,16 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <mikmod.h> + +int main(int argc, char *argv[]) +{ + (void)argc; + (void)argv; + + MikMod_RegisterAllDrivers(); + MikMod_Init(""); + + MikMod_Exit(); + return 0; +} diff --git a/src/libmikmod.mk b/src/libmikmod.mk index 5c50262..05e9778 100644 --- a/src/libmikmod.mk +++ b/src/libmikmod.mk @@ -31,4 +31,9 @@ define $(PKG)_BUILD --prefix='$(PREFIX)/$(TARGET)' \ --disable-esd $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + + '$(TARGET)-gcc' \ + -W -Wall -Werror -std=c99 -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libmikmod.exe' \ + `'$(PREFIX)/$(TARGET)/bin/libmikmod-config' --cflags --libs` endef |