mirror of https://git.wownero.com/dsc/mxe.git
add test program for package libmikmod
This commit is contained in:
parent
26ce093ba4
commit
e20bab3018
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue